google: update ApprovalForce to use openid connect friendly prompt=consent
It looks like in 2016 or so` approval_prompt=force` was replaced with the open id connect friendly `prompt=consent`. See: - https://openid.net/specs/openid-connect-core-1_0.html#AuthRequest - https://developers.google.com/identity/sign-in/web/reference#gapiauth2offlineaccessoptions - https://github.com/googleapis/oauth2client/issues/453 - https://github.com/pomerium/pomerium/pull/82 Change-Id: Iad2d533f451a70b2941aafd11c9b7272026a2f16 GitHub-Last-Rev: d6d10ceec8cf703bb88c8201867bacdee238fa04 GitHub-Pull-Request: golang/oauth2#379 Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/171123 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
committed by
Brad Fitzpatrick
parent
950ef44c6e
commit
aaccbc9213
@@ -117,7 +117,7 @@ var (
|
||||
// ApprovalForce forces the users to view the consent dialog
|
||||
// and confirm the permissions request at the URL returned
|
||||
// from AuthCodeURL, even if they've already done so.
|
||||
ApprovalForce AuthCodeOption = SetAuthURLParam("approval_prompt", "force")
|
||||
ApprovalForce AuthCodeOption = SetAuthURLParam("prompt", "consent")
|
||||
)
|
||||
|
||||
// An AuthCodeOption is passed to Config.AuthCodeURL.
|
||||
|
||||
Reference in New Issue
Block a user