How I Can code for Open Id in My Asp.net MVC Project?
I want to insert code for Open Id. I am unable to find article based on this. Please Help me With giving me a link of article? Your articles he开发者_JS百科lp me very much.
Check out OpenIdPortableArea. It provides a controller and views that already contain the OpenId logic. All you need to do is register the area with AreaRegistration.RegisterAllAreas()
and wire up a message handler, and you have access to the OpenId string that gets returned for the user. The views are embedded, but can be overridden. Check out the documentation for more comprehensive details.
If you're not familiar with portable areas, they are from MvcContrib. There are some good blog posts about how to get them going. The OpenIdPortableArea uses DotNetOpenAuth.
Otherwise, you can implement the logic yourself. Here's a great blog post about how to do it.
Try the answer to this question.
精彩评论