Ahmed Sayed
Ahmed Sayed
CC#
Created by Ahmed Sayed on 2/10/2024 in #help
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