Simple demo of DotNetOpenAuth, MVC & Razor

I have been looking for some time for a very simple implementation using DotNetOpenAuth so that users can log in to my application using their Google account, Yahoo account or other OpenId. I did some searches and searches on the DotNetOpenAuth site, and also checked the source code of some other projects that uses this service, but none of them seem very simple. (Including samples from the DotNetOpenAuth website.)

Does anyone have a link to a tutorial / demo / example that most of the following would demonstrate?

  • Allow the user to log in using Google, Yahoo, another OpenId, or the "regular" ASP.NET member account. (Very similar to the NerdDinner trial version)
  • Upon initial login, capture data such as FirstName, LastName, E-MailAddress, etc. from an external source (e.g. Google).
  • If you are logging in for the first time, save the above membership information (possibly in ASP.NET membership tables).
  • On subsequent logins, retrieve this user entry from the ASP.NET membership tables.
  • Using MVC 3 with the Razor engine.

Any help you could provide would be greatly appreciated. Most likely, the information that I need, I have already seen in some of these other demos. I just don’t have any information about what the code does to completely wrap the functionality around me.

+5
source share
1 answer

, , this. NerdDinner, , , .

+7

All Articles