问题
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