[keycloak-dev] Client.getBaseURL() inconsistencies

Stian Thorgersen sthorger at redhat.com
Tue Nov 19 02:52:51 EST 2019


Have you rebased locally? I would assume you get the same error locally
after a rebase.

Client.getBaseURL() can return a URL relative to the client root url so
needs to be resolved, see
https://github.com/keycloak/keycloak/blob/master/services/src/main/java/org/keycloak/forms/login/freemarker/model/ClientBean.java#L54.
The base-url and root-url for the account and admin console where modified
to support default hostname provider work which allows configuring a
different context-path on a reverse-proxy than what Keycloak is deployed
on. Hence /auth part couldn't be in the base-url anymore as only the
root-url has special evaluation.

On Mon, 18 Nov 2019 at 21:34, Douglas Palmer <dpalmer at redhat.com> wrote:

> Hi everyone
>
> I have a problem with Client.getBaseURL(). When called locally in a test
> it returns "/auth/realms/test/account" when the same test is executed in
> Travis it returns "/realms/test/account”. Does anyone know why this happens
> and how I can fix it?
>
> Regards
> Doug
> _______________________________________________
> keycloak-dev mailing list
> keycloak-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-dev


More information about the keycloak-dev mailing list