Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OpenID authentication in ASP.NET?

I am starting to build a new web application that will require user accounts. Now that I have an OpenID that I am using for this site I thought it would be cool if I could use OpenID for authentication in my application. Are there any good tutorials on how to integrate OpenID with an ASP.NET site?

like image 588
dlannoye Avatar asked Aug 19 '08 18:08

dlannoye


People also ask

What is OpenID authentication?

OpenID Connect is a simple identity protocol and open standard that is built using the OAuth 2.0 protocol. It enables client applications to rely on authentication that is performed by an OpenID Connect Provider (OP) to verify the identity of a user.

What is .NET core OpenID?

What is OpenID Connect? OpenID Connect is a simple identity layer that works over the top of OAuth 2.0. It uses the same underlying REST protocol, but adds consistency and additional security on top of the OAuth protocol. It is also worth noting that OpenID Connect is a very different protocol to OpenID.

Is OpenID used for authentication?

OpenID Connect has become the de facto protocol to authenticate users between applications and external identity providers (IdPs).


4 Answers

See Scott Hanselman's post on using DotNetOpenID in ASP.NET. Andrew Arnott's blog is full of samples on using DotNetOpenID with ASP.NET, including ASP.NET MVC.

I recently hooked up DotNetOpenID for the Subtext 2.0 release. It went really smoothly - the code samples included with the DotNetOpenID download are pretty helpful. The one thing I'd recommend is that you just use the library and avoid the ASP.NET control. It uses table based layout (hardcoded) and is pretty difficult to restyle.

like image 75
Jon Galloway Avatar answered Nov 06 '22 17:11

Jon Galloway


DotNetOpenId available at http://code.google.com/p/dotnetopenid

like image 23
Nick Berardi Avatar answered Nov 06 '22 18:11

Nick Berardi


Are there any good tutorials on how to integrate OpenId with an ASP.NET site?

Andrew Arnott's post titled "How to add OpenID to your ASP.NET web site (in C# or VB.NET)"

like image 20
Jason Bunting Avatar answered Nov 06 '22 16:11

Jason Bunting


I'm considering the same thing. On the Open ID site, there's a link 'For Developers' @ http://openid.net/developers/ and from there is a link to 'Open Libraries' @ http://wiki.openid.net/Libraries and finally from there is one called 'DotNetOpenID' @ http://dotnetopenid.googlecode.com/ which is probably what you're looking for.

Good luck.

like image 20
Jason Shoulders Avatar answered Nov 06 '22 17:11

Jason Shoulders