Andy
Andy

Reputation: 2762

Simple OpenID authentication code for .NET MVC

Is there a simple example of OpenID authentication implemented using MVC ?

Upvotes: 4

Views: 1856

Answers (5)

Maksym Kozlenko
Maksym Kozlenko

Reputation: 10363

Here is a complete step by step article how to add OpenID authentication to ASP.NET MVC 3 application. It shows how to combine OpenID with stanard FormAusthenication model, so you can use either e-mail/password or OpenID.

Complete solution code is available. It worked for me with some minor tweaking to get user's e-mail, first and last name in addition to OpenID :-)

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

http://weblogs.asp.net/haithamkhedre/archive/2011/03/13/openid-authentication-with-asp-net-mvc3-dotnetopenauth-and-openid-selector.aspx

Upvotes: 0

Peter
Peter

Reputation: 38455

I know a im a bit late but look here http://nuget.org/packages/SimpleID Now i haven't tried it but it seems like the fastest solution and its based on DotNetOpenAuth

Upvotes: 0

4imble
4imble

Reputation: 14416

You cant get much simpler than this:

I just installed dotnetopenauth through nuget to a new project (forms authentication included), and then followed this tutorial which is pasting 3 small chunks of code and it worked.

http://andrewblogs.com/blog/openid-for-asp-net-mvc-a-quick-setup/

Upvotes: 1

takepara
takepara

Reputation: 10433

RPX is yet another OpenID library.

Authenticating users with RPXNow (in ASP.NET MVC)

Upvotes: 1

Darin Dimitrov
Darin Dimitrov

Reputation: 1038710

DotNetOpenAuth. You can also take a look at this blog post from Scott Hanselman.

Upvotes: 5

Related Questions