[keycloak-dev] Master update breaks account console

Jan Lieskovsky jlieskov at redhat.com
Thu Nov 14 04:07:50 EST 2019


On Wed, Nov 13, 2019 at 10:46 PM Stan Silvert <ssilvert at redhat.com> wrote:

> In new account console, I pass the auth URL to Freemarker.  I call:
>
> session.getContext().getUri(UrlType.FRONTEND).getBaseUri().toString())
>
> This has always returned something like "http://localhost:8080/auth"
>
> However, the latest in master puts a slash at the end,
> "http://localhost:8080/auth/"
>

> I can easily update my code for this to work, but I'm concerned that
> this change might have broken more than just the new account console.
> Perhaps other code in the community is relying on the URL not having a
> slash at the end.
>
> Does anyone recognize the change that might have caused this?
>

Might be related with the recent new default hostname provider
(KEYCLOAK-11728) change.
At least this change in corresponding test acceptance criteria
<https://github.com/keycloak/keycloak/commit/b8881b8ea062afa2f1b5a613dd856900b73f2121#diff-42f10e03d16b143ad9c65c3791f8c387L92>
would suggest so.

But given the corresponding test was changed to expect slash at the end, I
would say this
is expected behaviour now.  @Stian Thorgersen <stian at redhat.com> Can you
confirm?



>
> Stan
>

Thank you && Regards, Jan
--
Jan iankko Lieskovsky / Keycloak / RH-SSO Team



>
> _______________________________________________
> 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