Keycloak Query Parameters

Hi

I have secured my application by Keycloak and it works as intended. We send users mail for registered users with link (example - https://abc.com/transport/bus?bus_id=bc52a2&cID=431ff&mode=0) when the user clicks on the link they are redirected to the keycloak page user authenticates and navigates to the modified link (https://abc.com/transport/bus).

After login, it’s not redirecting to the original url it’s removing query params in the url. Any suggestion or config changes i need to make to include the query params.

Thanks

Hi,

For this, there is the state parameter. If storing the params in a server-side session with the session addressed by the state param, you could include the query params directly in the state param value. The state and it value is alwasy passend back to the redirect URL after authentication.

Regards,
Matthias