Skip to content
Discussion options

You must be logged in to vote

The post-login flow approach is right, but I think the conditional OTP subflow config needs tweaking. The problem is probably that "Condition - user configured" + "OTP Form" as Alternative means Keycloak skips OTP entirely when the user hasn't configured it yet — which is what you want for later logins, but for first login you need to force OTP setup.

I think you need two separate subflows inside your post-login flow:

aai-otp-postlogin (post broker login flow)
├── OTP setup subflow                    Required
│   ├── Condition - user configured      Conditional
│   └── OTP Form                         Required
└── (Terms and Conditions can go above this as a separate Required execution)

A…

Replies: 1 comment 1 reply

Comment options

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

Answer selected by AlexCork1
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