8000 Looking for guidance on a clean self-service MFA and recovery code design · keycloak keycloak · Discussion #54659 · GitHub
[go: up one dir, main page]

Skip to content
Discussion options

You must be logged in to vote

Most of this is doable with built-ins. The exception is cleaning up recovery codes, which needs a small bit of code. I checked against 26.8.1.

Leftover codes still triggering 2FA. Condition - User Configured only looks at non-subflow executions that sit next to it, and when they're all alternatives it passes if any one of them is configured (source). In the default browser flow the recovery code form is a sibling of OTP Form, so the codes alone satisfy it. Nested sub-flows are skipped by that check, so move the codes one level down:

2FA                                  Conditional
  Condition - User Configured        Required
  OTP Form                           Alternative
  WebAuthn Aut…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tokapatrik
Comment options

Answer selected by tokapatrik
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
0