Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/services/mcp/oauth/McpAuthorizationDiscovery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ export class McpAuthorizationDiscovery {
}
} catch (e) {
// Ignore and try next
console.warn(`Failed to fetch RFC 8414 metadata:`, e)
}

// Try OIDC Discovery
Expand All @@ -174,6 +175,7 @@ export class McpAuthorizationDiscovery {
}
} catch (e) {
// Ignore fetch errors
console.warn(`Failed to fetch OIDC metadata:`, e)
}

throw new Error(`Failed to discover authorization server metadata for ${issuerUrl}`)
Expand Down
2 changes: 1 addition & 1 deletion src/services/mcp/oauth/McpOAuthService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ export class McpOAuthService {
state,
codeChallenge,
codeChallengeMethod: "S256",
// resource: serverUrl, // Disabled: Cloudflare doesn't support RFC 8707 resource parameter
resource: serverUrl,
})

// 5. Verify State
Expand Down