2

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 help me very much.

SAHIL SINGLA
  • 725
  • 2
  • 8
  • 26

2 Answers2

4

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.

John Nelson
  • 4,781
  • 6
  • 25
  • 33
2

Try the answer to this question.

Community
  • 1
  • 1
Nicholas Murray
  • 12,465
  • 13
  • 61
  • 82
  • 1
    or this one http://stackoverflow.com/questions/16716/openid-authentication-in-asp-net – AndreasN Apr 12 '10 at 12:11
  • or indeed this one http://stackoverflow.com/questions/933884/request-for-tutorial-to-add-openid-support-to-nerddinner-asp-net-mvc-application – Nicholas Murray Apr 12 '10 at 12:39