Skip to content

Fix enterprise IdP metadata for strict OIDC discovery - #574

Open
fitchmultz wants to merge 1 commit into
modelcontextprotocol:mainfrom
fitchmultz:fix-idp-discovery
Open

fitchmultz wants to merge 1 commit into
modelcontextprotocol:mainfrom
fitchmultz:fix-idp-discovery

Conversation

@fitchmultz

Copy link
Copy Markdown

Fixes #573.

The enterprise authorization fixture now supplies the required OIDC discovery fields, allowing strict SDK discovery to reach the existing token exchanges. Its pre-issued ID token uses RS256, which OIDC Discovery requires providers to advertise; the advertised algorithm and real key/signature now agree. ID-JAG signing and all scenario checks remain unchanged.

The added test calls the SDK's real discovery helper against the running fixture. Before the fix it fails with the three missing-array diagnostics. Afterward it verifies discovery, endpoints, subject type and the issued token's advertised algorithm. The existing complete-flow tests still exercise both exchanges.

Verification:

  • npm run build passed.
  • npm test passed: 642 tests in 48 files.
  • npm run check passed on macOS with the installed native compiler, ESLint and Prettier.
  • Android build/tests/lint passed; its published native-preview compiler has no Android binary, so the canonical typecheck ran on macOS.

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.

Enterprise authorization IdP metadata fails strict OIDC discovery

1 participant