How to change the hostname in a redirect url?

561 views
Skip to first unread message

Eric J. Van der Velden

unread,
May 16, 2022, 2:57:51 PM5/16/22
to Keycloak User

Suppose the application and keycloak are installed on the same machine. If the user with the browser is also on that machine, localhost is used everywhere and everything works.

But now the user is on another machine, and tries to access a page, which requires a login via keycloak,

http://appl_and_keycloak_machine:8080/resource

Then there follows a redirect:

http://localhost:9080/auth/realms/myrealm/protocol/openid-connect/auth?response_type=c...

But on the machine where the user is is no process on port 9080. So how can you change the hostname in the redirect url?

Garth

unread,
May 16, 2022, 2:58:48 PM5/16/22
to Eric J. Van der Velden, 'Thomas Darimont' via Keycloak User
This guide might be helpful: https://www.keycloak.org/server/hostname
> --
> You received this message because you are subscribed to the Google
> Groups "Keycloak User" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to keycloak-use...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/keycloak-user/35d56bbb-2f1d-41c4-a78c-5ee76c4ece97n%40googlegroups.com
> <https://groups.google.com/d/msgid/keycloak-user/35d56bbb-2f1d-41c4-a78c-5ee76c4ece97n%40googlegroups.com?utm_medium=email&utm_source=footer>.
Reply all
Reply to author
Forward
0 new messages