开发者

Implementing a membership system using OpenID

I'm looking to implement a membership system using OpenID for my ASP.NET application, similar to the system used here on StackOverflow. I'm aware that the OpenAuth library is generally recognized as the way to go, but I'm having trouble 开发者_如何学JAVAfiguring out how to implement it.

I use NHibernate to persist my domain objects. I have a Users table with a username column, email column, etc. I'm not sure how to integrate OpenID with my own users table, and I haven't found any good tutorials on this. Does anyone have any experience with this? What is the best way to go about doing it?


Check out this blog post from Rick Strahl.

A good write up of how to do authentication and registration with OpenID.


Tyler, yes, I found the OpenAuth library to be way too complicated (read that as "over engineered") as well. So I developed my own and made it an open source library.

you can check it out my website here OAuth C# Library

I have a very simple working demo application available as well and you should be up and running in no time.


You can have a look at Implementing OpenID in ASP.net “Properly” - Membership or Authentication Provider? on SO. On Codeplex you will find a membership provider that might suite your needs. The other SO answers also share a link to a second alternative implementation.


check it out: http://www.dotnetopenauth.net/developers/code-snippets/programmatic-openid-relying-party/

very easy to implement. good luck!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜