I am trying to fix an intermittent issue when using Google as an external login provider.
When attempting to login, the user is redirected back to the login page ra
I believe you should't be using app.UseGoogleAuthentication();
as that's a call which will try to use OpenID 2.0, which has been deprecated.
What you should be using instead is OAuth 2.0 for Login (OpenID Connect).
So:
app.UseGoogleAuthentication(new GoogleOAuth2AuthenticationOptions() { ClientId = "YOUR_CLIENT_ID", ClientSecret = "YOUR_CLIENT_SECRET", });