Repository navigation
Replies: 8 comments 8 replies
|
How is this supposed to work with multiple realms or how is auto-discovery supposed to work for individual realms then? |
|
+1 👍 Based on our experience, we often configure Keycloak with a single realm (excluding the
This indicates that when using Keycloak as a single tenant, the current Furthermore, even when using multiple realms (e.g., providing customer environments per realm), other IDaaS solutions support custom domain feature for customer tenants. Implementing this in Keycloak with the current implementation results in the following
Therefore, I fully support this proposal. |
|
I've wanted something like this for a long time, but never come up with a decent way to implement it. One challenge is that Keycloak exposes a few resources on the base URL, not just realms:
Another is how you would configure the mapping of
Another idea was to have the concept of a default realm, so if you don't specify There's probably more challenges with this as well, but for me it never got past just briefly thinking about it and that it would be nice ;) |
|
For this to proceed someone would have to take the initiate on working on a design proposal on how this would all work. |
|
I would propose to introduce a realm domain to re-direct realm access from the domain name. It would be possible to use one certificate for the 4 domains, or we could provide an override certificate for realm1 |
|
I will note that there was just a bug fix that used the URL to determine the realm in the case where there is a 404. It wa 8000 s needed so that the error page text could be localized on a per realm basis. I consider this to be an edge case and it probably should not be a deciding factor, but wanted to make everyone aware. |
|
I would expect a check box right below the frontend url named "relative to realm". Ticking this check box means that the frontend url uniquely reaches to the current realm. Of course, the save button needs a validation that in this case the frontend url is not used for anything else, especially "/realms/master". I would be even fine if the master realm does not allow to tick the box. I can imagine that the availability of "/resources" or "/robots.txt" needs some extra rounds of thinking. |
|
Marking as closed to move the conversation and refinement to #14623 |
Uh oh!
There was an error while loading. Please reload this page.
Benefits:
Simply deleting "realms/{realm}" simplifies the endpoint URL and allows us to closely comply with RFC5785, for example. RFC5785 expects "/.well-known/" to be located directly under authority, but Keycloak does not comply with this.
If "realms/{realm}" is included in the URI, attackers can tell that Keycloak is being used. By removing "realms/{realm}" from the URI, it becomes more difficult for an attacker to easily determine that Keycloak is being used.
Idea of implementation:
All reactions