identity/google: always show user selection.

Signed-off-by: Bobby DeSimone <bobbydesimone@gmail.com>
This commit is contained in:
Bobby DeSimone 2019-07-22 06:48:42 -07:00
parent 29eee409ef
commit b12ecc4cba
No known key found for this signature in database
GPG key ID: AEE4CF12FE86D07E
2 changed files with 3 additions and 1 deletions

View file

@ -124,7 +124,7 @@ func (p *GoogleProvider) Revoke(accessToken string) error {
// prompt=consent to the OAuth redirect URL and will always return a refresh_token.
// https://openid.net/specs/openid-connect-core-1_0.html#OfflineAccess
func (p *GoogleProvider) GetSignInURL(state string) string {
return p.oauth.AuthCodeURL(state, oauth2.AccessTypeOffline, oauth2.ApprovalForce)
return p.oauth.AuthCodeURL(state, oauth2.AccessTypeOffline, oauth2.SetAuthURLParam("prompt", "select_account consent"))
}
// Authenticate creates an identity session with google from a authorization code, and follows up