Justification for OIDC Discovery endpoint being unrestricted #50905
Replies: 1 comment
|
The discovery endpoint is an unique (realm-wide) path that provides information for clients - endpoint locations, keys, supported algorithms, etc.. It shouldn't contain anything secret, so authentication is usually not required. Note that the endpoint would also need to be protected via means other than what is configured for client authentication (JWT, certificate, secret) since public clients don't use authentication, but still expect to be able to access the discovery endpoint. If it's imperative, you could add authentication via a reverse proxy, but adding it may break clients that expect discovery to be open - I don't remember seeing parameters for the discovery endpoint for any clients - though you can configure the clients manually in most cases. |
Uh oh!
There was an error while loading. Please reload this page.
Hi Keycloak team,
I have a question about the realm OIDC discovery endpoint: /realms/{realm-name}/.well-known/openid-configuration - This endpoint (and a few others) is unrestricted and accessible without authorization. Although I understand this is intentional by design, I am seeking an explanation for keeping this discovery endpoint publicly accessible. Thank you.
All reactions