diff --git a/plugins/auth/google/auth.go b/plugins/auth/google/auth.go index 477548b..ad4ef05 100644 --- a/plugins/auth/google/auth.go +++ b/plugins/auth/google/auth.go @@ -162,7 +162,11 @@ func (a *AuthGoogleOAuth) Login(res http.ResponseWriter, r *http.Request) (user // method. If no login using this method is possible the function // needs to return nil. func (a *AuthGoogleOAuth) LoginFields() (fields []plugins.LoginField) { - loginURL := a.getOAuthConfig().AuthCodeURL(a.AuthenticatorID(), oauth2.AccessTypeOffline) + loginURL := a.getOAuthConfig().AuthCodeURL( + a.AuthenticatorID(), + oauth2.AccessTypeOffline, + oauth2.SetAuthURLParam("prompt", "consent"), + ) return []plugins.LoginField{ {