Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2FA login should use method selector #354

Open
3 of 5 tasks
jonas-jonas opened this issue Feb 6, 2025 · 0 comments · May be fixed by #360
Open
3 of 5 tasks

2FA login should use method selector #354

jonas-jonas opened this issue Feb 6, 2025 · 0 comments · May be fixed by #360

Comments

@jonas-jonas
Copy link
Member

Preflight checklist

Ory Network Project

No response

Describe your problem

When having one or more 2fa methods enabled, the Ory Elements card should display a method chooser similar to the two-step login/registration flow but with the available 2FA methods.

Image

Describe your ideal solution

If two or more methods are available to the user (read: nodes returned by the Kratos API), the user should be presented with the method selector, instead of a list of all nodes.

Most likely, the form state parsing needs to be changed to include parsing of 2fa (aal2) login flows:

function parseStateFromFlow(flow: OryFlowContainer): FormState {

When the user clicks on an option, they should be presented with just the inputs for the selected option.

Workarounds or alternatives

-/

Version

master

Additional Context

No response

@pcaillaudm pcaillaudm linked a pull request Feb 18, 2025 that will close this issue
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant