use issuer instead of authorization_endpoint for oauth discovery (#17332)

Co-authored-by: Tommaso Sciortino <sciortino@gmail.com>
This commit is contained in:
garrettsparks
2026-02-18 14:38:04 -08:00
committed by GitHub
parent 221ea360b9
commit 037061e2e0
5 changed files with 49 additions and 10 deletions
+2
View File
@@ -748,6 +748,7 @@ async function handleAutomaticOAuth(
const oauthAuthConfig = {
enabled: true,
authorizationUrl: oauthConfig.authorizationUrl,
issuer: oauthConfig.issuer,
tokenUrl: oauthConfig.tokenUrl,
scopes: oauthConfig.scopes || [],
};
@@ -1783,6 +1784,7 @@ export async function connectToMcpServer(
const oauthAuthConfig = {
enabled: true,
authorizationUrl: oauthConfig.authorizationUrl,
issuer: oauthConfig.issuer,
tokenUrl: oauthConfig.tokenUrl,
scopes: oauthConfig.scopes || [],
};