Repository navigation
Is KEYCLOAK_FRONTEND_URL environnement variable provided to docker supposed to overwrite realm's frontend url ? #20868
|
Hello, I'm really confused about this (I'm using Keycloak 15 docker image - Yes I know its old, but I cannot upgrade right now). Is the KEYCLOAK_FRONTEND_URL environnement variable provided to the docker container supposed to overwrite all realms' frontend url ? Let's say I defined the front end url for my master realm like this : http://localhos:8180/auth (see the missing t ?) Now I want to force it to http://localhost:8180/auth by definining the KEYCLOAK_FRONTEND_URL variable provided to the Keycloak container in order to be able to access the console again. If I open my browser to http://localhost:8180/auth and put my mouse over "Administration console" it looks like it is indeed using the KEYCLOAK_FRONTEND_URL variable (http://localhost:8180/auth). Great so far. But when I click on it I get a blank page because of an ajax request is made to http://localhos:8180/auth/js/keycloak.js?version=hilhk (so it seems that here it is the frontend url defined at the realm's level that is used) This leads me to think that KEYCLOAK_FRONTEND_URL variable is not really setting a fixed frontend url. The front end url defined at the realm's level seems to override it for some urls. If so, how I am supposed to be able to access the console if I misstyped the frontend url while defining it throught the 'frontend url' field of the master realm ? |
Hello, @omasseau,
As @vmuzikar mentioned above, you're running a quite old Keycloak version, and we aren't able to provide maintenance in previous versions. You'll benefit of a lot of advantages in upgrading to the newest version.
However, I tested what you described in Keycloak 21.1.1, and I could confirm that the URL set in the
Frontend URLfield in Realm settings form (at Admin Console) is considered even over the new set of options (Hostnamesettings). I believe this is the expected behavior.Regarding your question:
If so, how I am supposed to be able to access the console if I misstyped the frontend url while defining it throught the 'frontend url' field of the master realm? Is the …