Is there a de-facto solution for ASP.NET MVC 3+ one should use in case he needs to allow users to sign in/up via:
- OpenID
- OAuth
- Trivial registration / manual authentication
?
What I’m basically looking for is “Membership API” that works for OpenID, OAuth and whatever else. Key features are:
- Roles support (for ASP.NET MVC)
- Ability to bind multiple auth methods to single user (for instance, somebody first signed up with “trivial registration”, then he wants to bind his Google account and then his Yahoo account, so he should be able to auth with any of these 3)
Thanks!
DotNetOpenAuth is your friend.
See this blog post: OpenID Authentication with ASP.NET MVC3 , DotNetOpenAuth and OpenID-Selector
Also, you can see the official tutorial on ASP.NET MVC.