[keycloak-user] Themeing: Set Urls + Locale

Danny Trunk dt at zyres.com
Thu Apr 6 03:04:30 EDT 2017


Hello everyone,

is there a clean way to set the registrationUrl, loginUpdateProfileUrl, 
loginResetCredentialsUrl to my own one based on the Redirect URI as well 
as sending a Locale to the Keycloak pages which to be used instead of 
the configured default?
I'm using the Spring Security Adapter and I'm also familiar in creating 
Service Provider.

I need to do the registration, password forgotten and update profile 
processes within my webapp as there are some post-processes to be done 
and I don't want to rewrite them.
That's no problem as I'm using a User Storage Provider.

The Redirect URI looks like https://localhost:8443/de_DE/login.html
The Registration page is accessible through 
https://localhost:8443/de_DE/register.html
The Password forgotten page is accessible through 
https://localhost:8443/de_DE/pwreminder.html
The Update Profile page is accessible through 
https://localhost:8443/de_DE/myaccount.html

The hackish way would be to get the Query Parameter "redirect_uri" in 
the ftl Template and build the base url "https://localhost:8443/de_DE".
But then the Template still uses the default Locale.

Are there any clean ways?


More information about the keycloak-user mailing list