mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-12 12:54:07 -07:00
fix: user configured oauth scopes should take precedence over discovered scopes (#12088)
This commit is contained in:
@@ -630,7 +630,7 @@ export class MCPOAuthProvider {
|
||||
...config,
|
||||
authorizationUrl: discoveredConfig.authorizationUrl,
|
||||
tokenUrl: discoveredConfig.tokenUrl,
|
||||
scopes: discoveredConfig.scopes || config.scopes || [],
|
||||
scopes: config.scopes || discoveredConfig.scopes || [],
|
||||
// Preserve existing client credentials
|
||||
clientId: config.clientId,
|
||||
clientSecret: config.clientSecret,
|
||||
@@ -654,7 +654,7 @@ export class MCPOAuthProvider {
|
||||
...config,
|
||||
authorizationUrl: discoveredConfig.authorizationUrl,
|
||||
tokenUrl: discoveredConfig.tokenUrl,
|
||||
scopes: discoveredConfig.scopes || config.scopes || [],
|
||||
scopes: config.scopes || discoveredConfig.scopes || [],
|
||||
registrationUrl: discoveredConfig.registrationUrl,
|
||||
// Preserve existing client credentials
|
||||
clientId: config.clientId,
|
||||
|
||||
Reference in New Issue
Block a user