Before reporting an issue
Area
oidc
Describe the bug
Setting a trusted-hosts client policy in the Client Registration does not set the appropriate headers for CORS in /realms/<realm>/clients-registrations/openid-connect. The endpoint doesn't support the OPTIONS HTTP method.
Version
26.2.4 Latest
Regression
Expected behavior
CORS headers are included in OIDC client registration endpoints following the trusted-hosts policy (including *).
Actual behavior
CORS headers are not included and requests from the browser fail.
How to Reproduce?
Start an anonymous client registration from a browser and check browser network tab failures.
Anything else?
Found when testing an MCP server in MCP Inspector. Using keycloak as authentication provider with OAuth 2.0 Dynamic Client Registration Protocol (RFC7591).
Related issue #8863 from 2021. Opening a new one to make sure triage works with the correct issue labels.
Before reporting an issue
Area
oidc
Describe the bug
Setting a
trusted-hostsclient policy in the Client Registration does not set the appropriate headers for CORS in/realms/<realm>/clients-registrations/openid-connect. The endpoint doesn't support theOPTIONSHTTP method.Version
26.2.4 Latest
Regression
Expected behavior
CORS headers are included in OIDC client registration endpoints following the
trusted-hostspolicy (including*).Actual behavior
CORS headers are not included and requests from the browser fail.
How to Reproduce?
Start an anonymous client registration from a browser and check browser network tab failures.
Anything else?
Found when testing an MCP server in MCP Inspector. Using keycloak as authentication provider with OAuth 2.0 Dynamic Client Registration Protocol (RFC7591).
Related issue #8863 from 2021. Opening a new one to make sure triage works with the correct issue labels.