Skip to content
This repository has been archived by the owner on Nov 3, 2018. It is now read-only.

AuthenticationResult - UserName, email #12

Open
petrparik opened this issue Jun 24, 2015 · 0 comments
Open

AuthenticationResult - UserName, email #12

petrparik opened this issue Jun 24, 2015 · 0 comments

Comments

@petrparik
Copy link

Hello, I used this, but I have a problem.
My code is like this:

 DotNetOpenAuth.GoogleOAuth2.GoogleOAuth2Client.RewriteRequest();
 AuthenticationResult result =  OAuthWebSecurity.VerifyAuthentication(Url.Action("ExternalLoginCallback", new { ReturnUrl = returnUrl           }));

Before, result.UserName contained users email. Now it contains only name. What can I do so it contains email address?

In RegisterAuth method I have this:

 var client = new DotNetOpenAuth.GoogleOAuth2.GoogleOAuth2Client(googleClientID, googleClientID);
 var extraData = new Dictionary<string, object>();
 OAuthWebSecurity.RegisterClient(client, "Google", extraData);

Thanks a lot,
Petr

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant