[client] Force new user login on PKCE auth in CLI (#3604)

With this change, browser session won't be considered for cli authentication and credentials will be requested
This commit is contained in:
Maycon Santos 2025-04-01 10:29:29 +02:00 committed by GitHub
parent 48ffec95dd
commit 3658215747
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -99,6 +99,7 @@ func (p *PKCEAuthorizationFlow) RequestAuthInfo(ctx context.Context) (AuthFlowIn
oauth2.SetAuthURLParam("code_challenge_method", "S256"), oauth2.SetAuthURLParam("code_challenge_method", "S256"),
oauth2.SetAuthURLParam("code_challenge", codeChallenge), oauth2.SetAuthURLParam("code_challenge", codeChallenge),
oauth2.SetAuthURLParam("audience", p.providerConfig.Audience), oauth2.SetAuthURLParam("audience", p.providerConfig.Audience),
oauth2.SetAuthURLParam("prompt", "login"),
) )
return AuthFlowInfo{ return AuthFlowInfo{