Replies: 1 comment
-
|
Hey @usatony There is no built-in "prompt to set up 2FA" step in the registration flow. 2FA enrollment happens through the settings flow (/self-service/settings). Your worry about an aal2 step-up for settings is actually less of an issue for newly registered users than you might think. The required_aal: highest_available setting means Kratos only requires the highest AAL the user has configured. For a brand-new user who hasn't yet set up any second factor, their highest available AAL is still aal1, so they can access settings without completing a second factor challenge. The most Kratos-idiomatic way to achieve your flow would be:
Let me know what you think. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Since I'm on a roll with questions and requests today, I think I'll ask one more. :-) Sorry.
Is there a way to have Kratos natively prompt the user to optionally create a 2FA method after a new identity is registered?
I would ideally like the user's registration flow to work like this:
I think I can get this done via the UI, but I'd rather not because it may require an aal2 stepup which would be annoying (and I don't want settings to be changed at aal1). I also don't want to deviate too much from the accepted Kratos way of doing things. I'm programming the UI as an SPA that uses no frameworks or libraries but, instead, is written in plain and broadly compatible JavaScript (it's lightning fast, and PageSpeed Insights loves it). I would hate to do something weird that would totally break and require the UI to be reprogrammed when Kratos is updated.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions