使用OAuthWebSecurity API定制Membersip [英] Use OAuthWebSecurity API In Custom Membersip

查看:164
本文介绍了使用OAuthWebSecurity API定制Membersip的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用OAuthWebSecurity API在自定义membersip而不是SimpleMembership。
我的项目是ASP.NET MVC 4。

I want use the OAuthWebSecurity API in a custom membersip and not the SimpleMembership. my project is ASP.NET MVC 4.

链接找到这里

我的问题:我如何能做到这一点的工作。

My question: How i can do this work?

推荐答案

您需要有几件事情的地方。

You need to have a few things in place.

首先,你需要你的自定义成员提供程序要继承的 WebMatrix.WebData.ExtendedMembershipProvider

First you need your Custom membership provider to inherit from WebMatrix.WebData.ExtendedMembershipProvider

这有一大堆的额外方法处理OAuth的。

This has a whole bunch of extra methods for dealing with OAuth.

这篇关于使用OAuthWebSecurity API定制Membersip的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆