3

I am using keycloak 4.8.3 Final for my project. I need to disable auto login after the registration. I have been reading keycloak documentation for 5 days. Couldn't find the answer, i dont know if it's possible or not. Any guide will be useful for me. Thank you.

Neo
  • 467
  • 1
  • 3
  • 17

1 Answers1

10

If you want to show the Keycloak login form again after the registration, you can setup as follows:

  1. Go to Authentication settings and select Registration flow.
  2. Click Copy button.
  3. Click Add execution button and select Username Password Form.
  4. Click REQUIRED checkbox of Username Password Form execution.
  5. Click Bindings tab and change Registration Flow to the copied registration flow.
  6. Click Save button.

enter image description here

Kohei TAMURA
  • 4,970
  • 7
  • 25
  • 49
  • This shouldn't be the answer as it's just a workaround. By adding this execution, the active Registration flow will still not change to the Login (Browser) Flow but will just render the login form. Any other executions that you have within the Login Flow won't be executed... It's a pity that Keycloak doesn't allow you to easily check a box if you want the user to be automatically logged in or not. – eja Sep 22 '22 at 07:11