Different redirect_uri on registration vs logging in

Hi all,

We have a use case where we need to redirect to a different page depending on if a user logs in or if they register. So for example,

  1. User gets redirected to keycloak login page
    2.a If the user is already registered, and logs in with credentials, then redirect to urlA
    2.b. if the user is not registered, goes to registration form & submits, then redirect to urlB

is the possible to do in keycloak? If so could anyone help me out

Hi ckent,
We are having the same problem as you.
Did you find the answer to this problem?


I have not seen an example of conditional redirect like this. The only thing I can think of would be to write a custom Authenticator that overrides the redirect_uri on a certain condition.