Skip to content

auth/extauth: send resource in client credentials token requests - #1451

Open
shlee1223 wants to merge 1 commit into
modelcontextprotocol:mainfrom
shlee1223:extauth-client-credentials-resource
Open

shlee1223 wants to merge 1 commit into
modelcontextprotocol:mainfrom
shlee1223:extauth-client-credentials-resource

Conversation

@shlee1223

@shlee1223 shlee1223 commented Oct 25, 2026 •

Copy link
Copy Markdown

ClientCredentialsHandler omits resource from its token request, unlike AuthorizationCodeHandler.
The MCP authorization spec requires it in token requests. This passes prm.Resource via EndpointParams and adds a test.

Tests: added TestClientCredentialsHandler_TokenRequestIncludesResource, which fails without the fix.
go test -race ./auth/... ./oauthex/... passes.

AI disclosure: I used Claude Code to help find this; I reviewed and tested the change myself.

Fixes #1450

This branch has not been deployed

No deployments
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/extauth: ClientCredentialsHandler does not send the resource parameter

1 participant