ASP.NET MVC 3 and authentication support from multiple sources
I would like to know what's the best way to deal with authentication in Asp.NET MVC 3 from multiple sources like :
- custom Form authentication social
- networking (Facebook, twitter, etc.) 开发者_高级运维
- other ?
I found this link : Looking for a .NET library to do authentication that support multiple sources but would like to be sure if there is some more means to make authentication since that question was asked.
I don't want to be tightly coupled to one specific provider so maybe I should write some wrapper around it, but if you have some guidance, it could be nice to hear from your experience.
Thanks
The popular social networking sites (such as Facebook and Twitter) implement the OpenID functionality; and you can your own authentication to use OpenID. You could implement your own OpenID Membership Provider.
On a side note, it means you could authenticate users on StackOverflow too!
Let me know if I can help.
Matt
You might want to look into using Windows Identity Foundation
精彩评论