Skip to content

auth/oidc: support slice-typed extra claims via overlap match#1238

Open
SAY-5 wants to merge 1 commit intomodelcontextprotocol:mainfrom
SAY-5:fix/oidc-extra-claims-array-988
Open

auth/oidc: support slice-typed extra claims via overlap match#1238
SAY-5 wants to merge 1 commit intomodelcontextprotocol:mainfrom
SAY-5:fix/oidc-extra-claims-array-988

Conversation

@SAY-5
Copy link
Copy Markdown

@SAY-5 SAY-5 commented May 2, 2026

Closes #988. Direct actualValue != expectedValue fails when the token claim is an array (groups, roles, scp, aud). Switch to a slice-aware any-of overlap so OIDC list claims are validated correctly.

Closes modelcontextprotocol#988. Direct equality fails when token claim is an array; do an any-of overlap instead.
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.

Extra claims validation breaks for non-string claim values

1 participant