Repository navigation
fix(mcp): treat trailing-slash issuer identifiers as equivalent - #50046
cestercian wants to merge 1 commit into
Conversation
RFC 8414 well-known construction strips a terminating slash, so a protected-resource authorization_servers entry without a slash and metadata.issuer with one name the same server. Accept that pairing. Fixes anomalyco#50036
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
|
The following comment was made by an LLM, it may be inaccurate: |
|
Automated PR Cleanup Thank you for contributing to opencode. Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions. This PR was closed because it matched the following cleanup criteria:
PRs created within the last month are not affected by this cleanup. If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate. Thanks again for taking the time to contribute. |
Issue for this PR
Fixes #50036
Type of change
What does this PR do?
RFC 8414 well-known construction strips a terminating
/, so JumpCloud’s PRMauthorization_serversvalue and its metadataissuername the same server when they differ only by a trailing slash. The MCP client comparison is now bidirectional via the SDK’sissuersMatch.How did you verify your code works?
From
packages/core:bun test test/mcp-oauth.test.ts— 19 pass, including trailing-slash issuer pairingChecklist