Hi,
We would like to register new users by presenting them with a registration page where certain fields are already pre-filled.
Can this be accomplished using a custom theme where for example JS is used to fetch some query params that we pass to the registration page like this :
https://keycloak-dev.ixor.be/auth/realms/VDL/protocol/openid-connect/registrations?client_id=client1&response_type=code&scope=openid%20email&redirect_uri=http://localhost:8888®istrationEmail=exmaple@gmail.com®istrationFirstname=someFirstName®istrationLastname=someLastname
Where the registrationEmail,registrationFirstname and registrationLastname query params could be placed inside the form input fields ?
Or is there another / better way to achieve this ?
1 Like
Hi,
I had the same problem and found the way to do it in a formAction.
Example :
For your case I think you can recover your query params with :
context.getHttpRequest().getUri().getQueryParameters()
And just call your fromAction just before “Registration User Creation” like this :