My indentity asp.net is working fine. However, when the user logs in, Google asks the user if he will be okay to provide the following information:
- View your email address
- View basic information about your account
The problem is that I do not even want this information. I just want a unique way to identify the user (which he provides). I do not want users to think that I am going to spam them at the entrance.
In Startup.Auth.cs, I use google's very vanilla setting:
app.UseGoogleAuthentication();
EDIT: SOLUTION
Brock's answer led me to the right decision. The key thing was to add "openid" to the scope.
var googleOAuth2AuthenticationOptions = new GoogleOAuth2AuthenticationOptions
{
ClientId = "XXXX",
ClientSecret = "YYYY",
CallbackPath = new PathString("/Account/LoginCallback/"),
};
googleOAuth2AuthenticationOptions.Scope.Add("openid");
app.UseGoogleAuthentication(googleOAuth2AuthenticationOptions);