How do I get the username using DotNetOpenAuth with Google

Posted by Vinicius on Stack Overflow See other posts from Stack Overflow or by Vinicius
Published on 2010-04-21T14:21:12Z Indexed on 2010/04/21 14:23 UTC
Read the original article Hit count: 620

Filed under:
|
|

I have an ASP.NET MVC project that uses DotNetOpenAuth as authentication provider. How do I get the username (or email address) when the user logs using https://www.google.com/accounts/o8/id?

switch (response.Status)
    case AuthenticationStatus.Authenticated:
        string userOpenId = response.FriendlyIdentifierForDisplay;
        break;
(...)

© Stack Overflow or respective owner

Related posts about dotnetopenauth

Related posts about c#