Asking as I couldn’t find a proper answer in existing threads.
I am running a clean Keycloak v.26.2.5 server.
I haven’t touched existing authentication flows, especially the reset credentials flow - it’s vanilla i.e. in it’s original state.
I’ve enabled OTP credentials for login.
I configured email client and tested it works.
Flow:
-
user logs in via email/password
-
user sets up their OTP credentials
-
user decides to log out and reset their password
-
user gets reset password email
-
clicking on the link in the email user gets redirected to browser where the first screen they see is configure OTP screen - strange since reset password should be a priority, at least it is looking at the authentication flow
-
user tries to setup a new OTP but gets stuck in a loop - new configure OTP page is rendered each time they try to submit
Any ideas why this loop might be happening? Is it a known bug? I’ve seen posts where people recommend disabling “Reset - Conditional OTP“ in “reset credentials” auth flow but that presents a serious security risk as users would be able to login to our platform without actually using OTP.
If I didn’t provide enough info please let me know and Ill add more. Thanks in advance!

