Skip to content

Add "none" to token_endpoint_auth_methods_supported when CIMD feature is enabled - #1102

Draft
tnorimat with Copilot wants to merge 1 commit into
mainfrom
copilot/fix-issue-49730-again
Draft

Add "none" to token_endpoint_auth_methods_supported when CIMD feature is enabled#1102
tnorimat with Copilot wants to merge 1 commit into
mainfrom
copilot/fix-issue-49730-again

Conversation

Copilot AI commented Jun 7, 2026

Copy link
Copy Markdown

When --features=cimd is enabled, the discovery document advertises client_id_metadata_document_supported: true but omits "none" from token_endpoint_auth_methods_supported. MCP clients (e.g. Claude) require both fields to select CIMD over Dynamic Client Registration per the MCP specification.

Description

  • OIDCWellKnownProvider: add "none" to the token endpoint auth methods list when the CIMD feature is enabled
  • ClientIdMetadataDocumentTest: add test verifying both client_id_metadata_document_supported and "none" in token_endpoint_auth_methods_supported are present when CIMD is active

After fix:

curl -s https://<host>/realms/<realm>/.well-known/openid-configuration \
  | jq '.token_endpoint_auth_methods_supported'
# ["private_key_jwt", "client_secret_basic", "client_secret_post", "tls_client_auth", "client_secret_jwt", "none"]

… is enabled

Fixes keycloak#49730

When the CIMD feature is enabled, MCP clients require both
"client_id_metadata_document_supported": true and "none" in
token_endpoint_auth_methods_supported to select CIMD over DCR.
This change adds "none" to the supported auth methods list when
CIMD is enabled.
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