How to change host in Keycloak update password email

3/4/2020

We use Keycloak REST api to send update password email to users. In my setup Keycloak and application making REST calls to Keycloak (using keycloak admin client library) is deployed inside Kubernetes cluster. From my application I am using Kubernetes service name to talk to keycloak.

e.g. http://keycloak-http:8100/auth

With this setup, update password link in email becomes like this http://keycloak-http:8100/auth/realms/test/login-actions/action-token?key=somekey

So I need to change only host in this URL.

I looked at executeActions.ftl file in keycloak theme and it doesn't have any specific parameter for just host which I can customize.

Any ideas how I can achieve this?

Thanks in advance.

-- Priti
keycloak
kubernetes

0 Answers