Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.NET MVC solution for OpenID + OAuth + trivial authentication

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!

like image 916
Andrey Agibalov Avatar asked Dec 05 '11 07:12

Andrey Agibalov


2 Answers

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.

like image 125
tugberk Avatar answered Nov 06 '22 17:11

tugberk


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.

like image 37
Ram Khumana Avatar answered Nov 06 '22 15:11

Ram Khumana