Skip to content

Compare auth server metadata issuer ignoring trailing slash#955

Open
gainsley wants to merge 1 commit into
modelcontextprotocol:mainfrom
edgexr:bug953
Open

Compare auth server metadata issuer ignoring trailing slash#955
gainsley wants to merge 1 commit into
modelcontextprotocol:mainfrom
edgexr:bug953

Conversation

@gainsley
Copy link
Copy Markdown

oauthex/auth_meta.go: fixes metadata issuer comparison to ignore trailing slash difference

Google's gmail MCP server returns https://accounts.google.com/ as the Authorization Server in the Protected Resource Metadata, but returns https://accounts.google.com in the Auth Server Metadata. This causes a comparison failure per rfc8414 section-3.3: Authorization Server Metadata Validation. The authorization server URL is meant to be a base to build other URLs from, it does not seem necessary to enforce that the trailing slash (or lack thereof) matches with the issuer URL. Please see #953 for more details.

Fixes #953

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

auth metadata URL comparison fails due to trailing slash

1 participant