How can I code the Open Id in my MVC Asp.net project?
2 answers
Check out OpenIdPortableArea . It provides a controller and views that already contain OpenId logic. All you have to do is register the scope with AreaRegistration.RegisterAllAreas()
and attach a message handler and you have access to the OpenId string that is returned to the user. Views are built in but can be overridden. See the documentation for details .
If you are not familiar with portable scopes, they are from MvcContrib . There are some good blog posts on how to get them. OpenIdPortableArea uses DotNetOpenAuth .
Otherwise, you can implement the logic yourself. Here's a great blog post on how to do this.
+4
source to share