mirror of
https://github.com/pomerium/pomerium.git
synced 2025-04-30 10:56:28 +02:00
internal/identity: replace legacy approval_prompt=force with prompt=consent(#82)
Fixes a bug where caused by setting both prompt=consent and approval_prompt=force.
This commit is contained in:
parent
20b3950811
commit
06da599fbc
1 changed files with 2 additions and 2 deletions
|
@ -126,7 +126,7 @@ func (p *GoogleProvider) Revoke(accessToken string) error {
|
|||
// https://developers.google.com/identity/protocols/OAuth2WebServer#offline
|
||||
// https://stackoverflow.com/a/10857806/10592439
|
||||
func (p *GoogleProvider) GetSignInURL(state string) string {
|
||||
return p.oauth.AuthCodeURL(state, oauth2.AccessTypeOffline, oauth2.ApprovalForce, oauth2.SetAuthURLParam("prompt", "consent"))
|
||||
return p.oauth.AuthCodeURL(state, oauth2.AccessTypeOffline, oauth2.SetAuthURLParam("prompt", "consent"))
|
||||
}
|
||||
|
||||
// Authenticate creates an identity session with google from a authorization code, and follows up
|
||||
|
|
Loading…
Add table
Reference in a new issue