Ahmed Sayed
Google Redirct Auth problem
When I log in normally, it keeps reminding me to log in with Google, even though I am sure that redirct is correct
Services.AddAuthentication(o =>
{
o.DefaultAuthenticateScheme = GoogleDefaults.AuthenticationScheme;
o.DefaultChallengeScheme = GoogleDefaults.AuthenticationScheme;
}).AddGoogle(
o =>
{
IConfiguration googleAuthNSection = _configuration.GetSection("Authentication:Google");
o.ClientId = googleAuthNSection["ClientId"];
o.ClientSecret = googleAuthNSection["ClientSecret"];
}
);
When I remove the o.DefaultAuthenticateScheme = GoogleDefaults.AuthenticationScheme;
o.DefaultChallengeScheme = GoogleDefaults.AuthenticationScheme;
It works normally, but logging into Google gives me an Error and I can't do redirct. Is there a solution for it?
1 replies