Skip to content

SEP-3149: clarify auth method resolution - #1

Merged
stevenlee-oai merged 7 commits into
max/token-endpoint-auth-methodfrom
steven/sep-3149-method-resolution
Aug 7, 2026
Merged

stevenlee-oai merged 7 commits into
max/token-endpoint-auth-methodfrom
steven/sep-3149-method-resolution

Conversation

@stevenlee-oai

@stevenlee-oai stevenlee-oai commented Aug 5, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • resolve token endpoint authentication methods from the client/server capability intersection
  • preserve the singular token_endpoint_auth_method as the preferred method when it is mutually supported, so legacy authorization servers continue to work
  • allow another mutually supported method when the singular preference is unsupported, without requiring a new authorization-server discovery signal
  • align client/server selection with OpenID Federation rather than requiring servers to reject none
  • document why multiple CIMD URLs are only a migration fallback and why callback identifiers can multiply client identity cardinality
  • add ChatGPT and Codex implementation examples, transition tables, and CIMD restrictions against shared-secret methods

Open questions

  • Should MCP recommend preferring authenticated methods over none when that is compatible with legacy authorization servers?
  • How should an authorization server report an incompatible CIMD client before it has established a trusted redirect URI?

Validation

  • npm run generate:seps
  • npm run check:seps
  • npx 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

@stevenlee-oai
stevenlee-oai marked this pull request as ready for review August 6, 2026 00:28

@max-stytch max-stytch left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

My open questions so far- which we can address in another PR.

  • I like skipping none when 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.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

| Omitted | `none` | `["none"]` | Use legacy `none` |
| Omitted | Omitted | `["none"]` | Use deprecated `none` |
| Omitted | Omitted | `["private_key_jwt"]` | Reject incompatible client |

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These tables are great

`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.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@stevenlee-oai

stevenlee-oai commented Aug 7, 2026 •

Copy link
Copy Markdown
Collaborator Author

How does a MCP Client know that an AS supports reading token_endpoint_auth_methods_supported?

This is a good question and after some thoughts -
I don’t think the client necessarily needs to discover whether the authorization server understands the plural field. The client already knows which authentication methods the server supports from its authorization-server metadata.
If the client’s singular preferred method is supported, it uses that method, preserving compatibility with legacy servers. If the preferred method is unsupported but another method in the client’s supported array is supported, the client can attempt that alternative.
An upgraded server can accept the alternative because it understands the array. A legacy server may reject it because it only understands the singular field, but it would already have rejected the client based on the unsupported singular method. Therefore, understanding the plural field improves interoperability opportunistically without requiring a new discovery signal.

@stevenlee-oai

stevenlee-oai commented Aug 7, 2026 •

Copy link
Copy Markdown
Collaborator Author

(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?).

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.

@stevenlee-oai

Copy link
Copy Markdown
Collaborator Author

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 none? I removed that requirement. It would introduce a new security policy and can break legacy servers that bind clients to the singular method. The revised language instead aligns with OpenID Federation: clients choose a mutually supported method, authorization servers can enforce local policy, and the singular preference preserves backwards compatibility. Whether MCP should additionally recommend authenticated methods is now an explicit open question.

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),

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@stevenlee-oai
stevenlee-oai merged commit 86b4c7c into max/token-endpoint-auth-method Aug 7, 2026
5 of 6 checks passed
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.

2 participants