Repository navigation
SEP-3149: clarify auth method resolution - #1
stevenlee-oai merged 7 commits into
Conversation
max-stytch
left a comment
There was a problem hiding this comment.
LGTM!
My open questions so far- which we can address in another PR.
- I like skipping
nonewhen a stronger method is available, but I think we need to bring that to a broader discussion - How does a MCP Client know that an AS supports reading
token_endpoint_auth_methods_supported? - (maybe for CIMD) When an incompatible client is rejected, what does that mean in practice? Can the AS redirect the user back to the client with an error if it doesn't have a client registration (and therefore no trusted redirect URL?).
| endpoint authentication methods in the Client ID Metadata Document | ||
| specification continue to apply: the array **MUST NOT** include | ||
| `client_secret_post`, `client_secret_basic`, `client_secret_jwt`, or any other | ||
| method based around a shared symmetric secret. |
| | Omitted | `none` | `["none"]` | Use legacy `none` | | ||
| | Omitted | Omitted | `["none"]` | Use deprecated `none` | | ||
| | Omitted | Omitted | `["private_key_jwt"]` | Reject incompatible client | | ||
|
|
| `private_key_jwt` can therefore be rejected by a legacy authorization server | ||
| that only supports `none`, even when the array also contains `none`. This is | ||
| an inherent limitation of the legacy single-valued field; authorization | ||
| servers that understand the array use the method resolution rules above. |
There was a problem hiding this comment.
In the Alternatives Considered section I have some language on "Publishing multiple metadata documents, one per token_endpoint_auth_method". I'd appreciate your take on that section as as well.
Clients that need to interact with legacy ASs could maintain multiple CIMD URLs and choose which one to present to the AS based on what the AS supports. For example, a client could maintain a none metadata at URL A and a private_key_jwt metadata at URL B. I believe you were doing this for a while? Did it work well? What broke?
There was a problem hiding this comment.
Multiple CIMD documents, one per token_endpoint_auth_method, worked as a short-term workaround. The problem is that authentication method is not necessarily the only dimension that can vary: callback identifiers and other client capabilities can also produce distinct documents, so the number of client IDs grows quickly.
Because the CIMD URL is itself the client_id, these variations are not just different views of the same client—they create different client identities. That complicates authorization-server allowlists, existing registrations, consent records, and backward compatibility whenever a new variation requires a new URL.
We also ran into practical interoperability issues when expressing variations through query parameters, since some authorization servers reject CIMD URLs containing query strings. Multiple URLs are therefore a possible migration fallback, but a stable CIMD URL that advertises multiple capabilities is the better long-term model.
…d.md Co-authored-by: Max Gerber <[email protected]>
This is a good question and after some thoughts - |
This is just standard OAuth client rejection right? If trying to start OAuth with an invalid client, the page would show and invalid client error and that's it. |
|
Codex: I updated the SEP to reflect the migration questions from your review. Does the client need to discover whether the authorization server understands the plural field? Not necessarily. If the singular preferred method is supported, the client uses it and preserves legacy behavior. If it is unsupported, the client can try another mutually supported method from the array: an updated server may accept it, while a legacy server would already have rejected the unsupported singular preference. That makes array support an interoperability improvement without requiring a new discovery signal. Should authenticated methods always beat What happens when an incompatible client is rejected? I added this as an open question rather than assuming the authorization server can safely redirect before it has established a trusted redirect URI. I also incorporated the multiple-CIMD discussion into Alternatives Considered: additional varying dimensions multiply client IDs, complicate allowlists and registrations, and query-string variants are not broadly interoperable. |
| authorization server to communicate a selected method back to the client. | ||
| Preserving the singular preference when possible keeps existing | ||
| authorization-server behavior intact. This follows | ||
| [OpenID Federation 1.0, Section 12.1.4](https://openid.net/specs/openid-federation-1_0.html#section-12.1.4), |
There was a problem hiding this comment.
OpenID Federation is a substantial specification, and I don't think we should take a dependency on it just for the one para (esp. since we don't plan on adopting anything else). Prefer to drop this line
86b4c7c
into
max/token-endpoint-auth-method
Summary
token_endpoint_auth_methodas the preferred method when it is mutually supported, so legacy authorization servers continue to worknoneOpen questions
nonewhen that is compatible with legacy authorization servers?Validation
npm run generate:sepsnpm run check:sepsnpx prettier --check seps/3149-require-token-endpoint-auth-methods-supported-in-cimd.md docs/seps/3149-require-token-endpoint-auth-methods-supported-in-cimd.mdx