Skip to content

Conversation

@findleyr
Copy link
Contributor

@findleyr findleyr commented Dec 8, 2025

Add a UserID field to auth.TokenInfo that TokenVerifiers can populate from JWT "sub" claims or token introspection. The streamable HTTP transport uses this to bind sessions to users, rejecting requests where the user ID doesn't match the session's original user.

Fixes #589

Add a UserID field to auth.TokenInfo that TokenVerifiers can populate
from JWT "sub" claims or token introspection. The streamable HTTP
transport uses this to bind sessions to users, rejecting requests
where the user ID doesn't match the session's original user.

Fixes modelcontextprotocol#589
@findleyr findleyr requested review from jba and markus-kusano and removed request for jba December 8, 2025 17:12
@findleyr findleyr merged commit 18cd635 into modelcontextprotocol:main Dec 8, 2025
5 checks passed
Copy link
Contributor

@jba jba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved after merge.

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.

Proposal: add TokenInfo.UserID

3 participants