Repository navigation
chore(conformance): run the enterprise-managed-authorization client scenario - #1565
Merged
connor4312 merged 2 commits intoDec 3, 2026
Merged
Conversation
…cenario The conformance client had no arm for auth/enterprise-managed-authorization, the SEP-990 flow with an OIDC ID token subject, so the extension baseline listed it as a known failure. rmcp supports that subject since EmaExchangeRequest::new_with_id_token (modelcontextprotocol#1385). run_ema_refresh_token_client becomes run_ema_client, which takes the subject. The ID token fixture hands no IdP secret, so its IdP client is public. The scenario leaves the strict baseline, which would otherwise fail it as stale. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The subject decides both the IdP client authentication and the subject token, so one match arm now builds each pairing. ROADMAP.md marks auth/enterprise-managed-authorization as passing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
connor4312
approved these changes
Dec 3, 2026
connor4312
left a comment
Contributor
There was a problem hiding this comment.
LGTM. Thanks for folding both subjects into one run_ema_client: the ID-token path uses a public IdP client, the refresh-token path keeps client_secret_basic, and the stale baseline entry is removed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Handles the
auth/enterprise-managed-authorizationclient scenario in the conformance client, removes it from the extension baseline, and marks it passing inROADMAP.md.Motivation and Context
expected-failures-extensions.yamllistsauth/enterprise-managed-authorizationas a known failure. The scenario is the SEP-990 flow with an OIDC ID token as the subject: token exchange at the IdP for an ID-JAG, then the JWT bearer grant at the MCP authorization server.conformance-clienthas no arm for it and exits withUnsupported conformance scenario.rmcp has supported this flow since #1385 (
EmaExchangeRequest::new_with_id_token), after the baseline was written in #1019. The-refresh-tokenvariant already has an arm,run_ema_refresh_token_client(#1234), for the scenario proposed in modelcontextprotocol/conformance#484.The change:
run_ema_refresh_token_clientbecomesrun_ema_client, which takes the subject:IdTokenorRefreshToken. One match on the subject builds each exchange, so the IdP client authentication and the subject token always come as a pair.IdToken, the context'sidp_id_tokengoes tonew_with_id_token, with a public IdP client (the default ofEmaAuthorizationServer::new). The fixture hands no IdP secret, and the referee's IdP does not check client authentication, so a public client is the only choice. The refresh token path keepsclient_secret_basicwithidp_client_secret, as before.expected-failures-extensions.yaml. The baseline is strict, so with the arm in place CI would fail the entry as stale.ROADMAP.mdmarks the scenario as passing.How Has This Been Tested?
Every step of the client job in
conformance.yml, run locally on Windows 11 at fbd0f24 withnpx @modelcontextprotocol/conformance@0.2.0-alpha.12and Rust 1.96 (the pinned toolchain):--scenario auth/enterprise-managed-authorizationcomplete-flow-token-exchangeandcomplete-flow-jwt-bearerextensionssuite againstexpected-failures-extensions.yamlauth/dpop,auth/dpop-nonceandauth/wif-jwt-bearerfail)maincargo clippy -p mcp-conformance --all-targets -- -D warnings: clean.cargo test -p mcp-conformance: 2 passed (the client and server unit tests).cargo +nightly fmt --all -- --check: clean.The
auth/enterprise-managed-authorization-refresh-tokenscenario is not in a released conformance version (conformance#484 is still open), so the refresh token path ofrun_ema_clientwas compiled and checked by clippy, but not run against a referee. It sends the same requests as before: the same client authentication at the IdP and at the authorization server, the same refresh token, the same scopes.Breaking Changes
None. Only the conformance client, its baseline and the roadmap table change.
Types of changes
Checklist
Additional context
There is no new test: the change is itself coverage, since the extension step in CI now runs this scenario against a strict baseline.
auth/wif-jwt-bearerstays in the baseline: it needs a plain RFC 7523 JWT bearer grant with a workload JWT, and rmcp's JWT bearer step only redeems an ID-JAG fromexchange_id_jag. The DPoP entries are tracked in #1472.Two other rows of the roadmap table are out of date (the
tasks-*row still counts 9 expected failures, and there are no DPoP rows). They are left for a separate change, to keep this one to the scenario.Written with AI (Claude Code): the code change and this description.