I have asp.net indentity working fine. However when a user logs in, Google asks the user if it's OK to provide the following information:
- View your email address
- View basic information about your account
The problem is that I don't even want that information. I just want a unique way to identify the user (which it does provide). I don't want users thinking i'm going to spam them when they sign in.
In Startup.Auth.cs I use a very vanilla google setup:
app.UseGoogleAuthentication();
EDIT: SOLUTION
Brock's answer led me to the correct solution. Key thing was adding "openid" to the scope.
var googleOAuth2AuthenticationOptions = new GoogleOAuth2AuthenticationOptions
{
ClientId = "XXXX",
ClientSecret = "YYYY",
CallbackPath = new PathString("/Account/LoginCallback/"),
};
googleOAuth2AuthenticationOptions.Scope.Add("openid"); //!Important
app.UseGoogleAuthentication(googleOAuth2AuthenticationOptions);