Hi
In v26.2.5, in order to force all users to use 2FA, we changed "browser" flow and set "Browser - Conditional OTP" to "Required"
This automatically forced all existing and new users to set up OTP.
After upgrading to v26.3.1, we wanted to take advantage of using 2FA Recovery Codes feature.
So following changes were made:
1. Created a new realm "test" and examined "browser" flow to see what are the new subflows/actions I'd need to add to my existing realm's auth flow (because existing realms flows don't automatically change with these new subflows/actions)
* here we noticed 2 new steps: "WebAuthn Authenticator" and "Recovery Authentication Code Form"
2. In my existing realm, we enabled Authentication -> Required Actions -> Recovery Authentication Codes
3. In my existing realm, I modified "browser" flow to add 2 new steps, and set "Recovery Authentication Code Form" to "Alternative"
To summarize
In v26.2.5 "browser" flow, starting with "forms" node:
-------------------------------------------------------------------------------
flow: forms -> Alternative
step: Username Password Form -> Required
flow: Browser - Conditional OTP -> Required (changed from Conditional (default) to force OTP registration)
condition: Condition - user configured -> Required
step: OTP Form -> Required in v36.3.1, "browser" flow, starting with "forms" node:
-------------------------------------------------------------------------------
flow: forms -> Alternative
step: Username Password Form -> Required
flow: Browser - Conditional OTP -> Required (prev changed from Conditional (default))
condition: Condition - user configured -> Required
step: OTP Form -> Required (previous default, unchanged)
setp: WebAuthn Authenticator -> Disabled
step: Recovery Authentication Code Form -> Alternative (changed from Disabled (default), as per docs) However, with the above setup
* new users were required to set up OTP, but not required to set up recovery codes
* existing users were able to log in via OTP and were not prompted to set up recovery codes either
Is there a way I can set up the flow to require both OTP *and* recovery codes be set up for
new and existing users automatically when they log in?