Use OAuthWebSecurity API In Custom Membersip

青春壹個敷衍的年華 提交于 2019-12-13 00:42:26

问题


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

Link found here

My question: How i can do this work?


回答1:


You need to have a few things in place.

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

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



来源:https://stackoverflow.com/questions/12228100/use-oauthwebsecurity-api-in-custom-membersip

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!