[keycloak-user] Persistent Redirect Params in Registration

Gregor Tudan Gregor.Tudan at cofinpro.de
Mon Nov 19 20:15:26 EST 2018


Hi,

I’m trying to find a solution for passing redirect parameters reliably through the registration page.

Our users will go through some steps prior to the registration. We generate an anonymous profile for saving the user input of this step. Then we trigger a registration in Keycloak and pass the id of the profile as parameter in the redirect url. 

This works fine in happy path, but breaks on some occasions: 
- we use email-verification. If registration works, but the user fails to confirm the mail-address before the link expires, he will be promted to complete the confirmation the next time he logs in. But the mail in the Confirmation-link will now no longer contain the redirect params of the original mail
- if an error occurs during the registration (the user fails multiple times to fill out the form) an error message will be shown prompting the user to restart the registration. The original params will be lost.

Is there a way to pass the query params in a more reliable manner through Keycloak?
Or is it better to implement this kind of logic in the application code? If so, are there any recommendations? Email-Verification makes this quiet hard to do, as the registration can be completed on a completely different device.

Thanks,
Gregor 



More information about the keycloak-user mailing list