I tested the built-in external login logic for authentication, and I received this error even though my Google API credentials are correct. For example, the redirect URI was configured to:
http://localhost:29405/signin-google
It's strange that the default CallbackPath for Google Authentication is "/ signin-google", but I still had to set this to App_Start / Startup.Auth, so I added this line and it worked:
CallbackPath = new PathString ("/ signin-google")
So...
app.UseGoogleAuthentication(new GoogleOAuth2AuthenticationOptions() { ClientId = "YOUR CLIENT ID", ClientSecret = "YOUR CLIENT SECRET", CallbackPath = new PathString("/signin-google") });
thenninger
source share