7

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!

Andrey Agibalov
  • 7,624
  • 8
  • 66
  • 111

2 Answers2

7

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.

Pure.Krome
  • 84,693
  • 113
  • 396
  • 647
tugberk
  • 57,477
  • 67
  • 243
  • 335
  • Last link is dead, but I *think* this is the new one: [Creating an openid relying party (programatically)](https://github.com/DotNetOpenAuth/DotNetOpenAuth/wiki/Creating-an-openid-relying-party-%28programatically%29). I never saw the old link when alive so I am not 100% sure on the new link. – chue x Jun 19 '14 at 00:06
4

Please visit this links:- you can find a good solution....

  1. OpenID Authentication with ASP.NET MVC3 , DotNetOpenAuth and OpenID-Selector

  2. And you can download code from the SocialAuth-net project and modify source code and implement. I have also done this, from here.

Pure.Krome
  • 84,693
  • 113
  • 396
  • 647
Ram Khumana
  • 844
  • 6
  • 14