Repository navigation
SEP-3149: Require Token Endpoint Auth Methods Supported in CIMD - #3149
max-stytch wants to merge 13 commits into
Conversation
Rename from the 0000 placeholder and update the title, PR link, and lifecycle table entries per the PR-based SEP workflow.
Apply Prettier formatting to the SEP and regenerate the rendered SEP documentation, navigation, and index entries.
This comment was marked as spam.
This comment was marked as spam.
…d.md Co-authored-by: Max Gerber <[email protected]>
SEP-3149: clarify auth method resolution
wdawson
left a comment
There was a problem hiding this comment.
This makes sense to me! I think it's also correct to directly update any pages (like the client registration page) directly in this PR
I also noticed that some clients seem to ignore the server's supported methods. I was happy to see you included the intersection with AS methods here 🎉
Add token_endpoint_auth_methods_supported to the Client Registration required properties and authorization-server validation, update the example metadata document, and add a client authentication method selection note to Security Considerations covering downgrade risk. Addresses review feedback on PR modelcontextprotocol#3149 to reflect the requirement in the normative spec pages rather than only the SEP.
…spec-pages docs: apply SEP-3149 auth method requirements to authorization spec
| - Authorization servers **MAY** fall back to `token_endpoint_auth_method` | ||
| when the multi-valued parameter is absent — for example, when reading a | ||
| document published before this requirement took effect. | ||
| - Authorization servers **MUST** treat a document carrying neither parameter |
There was a problem hiding this comment.
Is treating omission as ["none"] intentional? none is appropriate when a public client explicitly says it cannot authenticate itself. But when the field is missing, assuming none means the authorization server will not require the client to prove its identity. Would it be safer to reject documents containing neither field and require public clients to declare none explicitly? If this fallback is needed for compatibility with existing MCP clients, could we document that reason and make it a temporary exception?
RFC 7591 defines client_secret_basic, rather than none, as the default when token_endpoint_auth_method is omitted. Since shared-secret methods are prohibited for CIMD, rejection seems safer than substituting a different default.
| - Authorization servers **MUST NOT** reject a client solely because the | ||
| singular preferred method is unsupported when another method in the array is | ||
| mutually supported. | ||
| - Authorization servers **MAY** fall back to `token_endpoint_auth_method` |
There was a problem hiding this comment.
Should this be MUST during the deprecation period? With MAY, an updated authorization server can immediately reject a client that explicitly supplies only token_endpoint_auth_method, which seems inconsistent with the statements made in this section ?
| The client and authorization server determine the set of mutually supported | ||
| token endpoint client authentication methods by intersecting the client's | ||
| `token_endpoint_auth_methods_supported` array with the authorization server's | ||
| `token_endpoint_auth_methods_supported` metadata value. |
There was a problem hiding this comment.
This intersection assumes that the authorization server publishes its RFC 8414 token_endpoint_auth_methods_supported metadata. Neither RFC 8414 nor the CIMD specification requires that field, and RFC 8414 defaults its omission to client_secret_basic, which CIMD clients are prohibited from using. Should this SEP require authorization servers advertising client_id_metadata_document_supported: true to publish a non-empty list containing at least one CIMD-compatible method? Alternatively, the SEP should explicitly define what clients do when the server field is absent.
| - After reading `token_endpoint_auth_methods_supported` from the CIMD | ||
| document, an authorization server **SHOULD** accept any method in the | ||
| intersection, unless its local security policy disallows that method for | ||
| the client. |
There was a problem hiding this comment.
Is the selected authentication method intended to remain stable for an existing grant, or may the client choose a different method for each token request? For example, if a client advertises both private_key_jwt and none, could it authenticate with private_key_jwt when exchanging an authorization code and later use none when refreshing the resulting token?
Should the authorization server bind the selected authentication requirement, or an equivalent minimum requirement, to the authorization code and refresh-token grant so that subsequent requests cannot use a weaker method?
|
Overall looks Great! Thanks for proposing this. |
|
FYI, I'm currently working on an update to CIMD that adds |
|
Aside, not sure where to put it, but when I checked on https://modelcontextprotocol.io/seps/ I couldn't find this draft SEP as the draft SEPs don't appear to be indexed anywhere, not by the page of SEP's nor the AI assistant (which also cannot read this repository) |
|
@ThisIsMissEm recommending |
That's what I've done here: oauth-wg/draft-ietf-oauth-client-id-metadata-document#99 |
|
Hey @max-stytch , thank you for putting this up. We are changing how we are handling contributions (yet to be documented well). For SEPs to be accepted, they will have to go through the auth working group. I took the freedom to move this to draft for now. It can be opened again once we have moved this through the auth working group. |
Motivation and Context
This SEP makes the
token_endpoint_auth_methods_supportedmetadata parametera required property of MCP Client ID Metadata Documents (CIMD), and creates a
deprecation path for the singular
token_endpoint_auth_methodparameter,mirroring the guidance in OpenID Connect RP Metadata Choices 1.0.
This enables a CIMD document to be published once and consumed by many
authorization servers with differing capabilities. It also deprecates the
implicit public-client default that applies when a document declares no
authentication method at all.
How Has This Been Tested?
Breaking Changes
Types of changes
Checklist
Additional context