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

Refactor MFA Routes #570

Merged
merged 5 commits into from
Jul 29, 2022
Merged

Refactor MFA Routes #570

merged 5 commits into from
Jul 29, 2022

Conversation

J0
Copy link
Contributor

@J0 J0 commented Jul 28, 2022

What kind of change does this PR introduce?

Refactors MFA Routes to conform to a more REST-ful format

now, routes are of the form /user/<user_id>/factor/<factor_id>/<action> . Concretely, this means

  • Change /mfa/user_id/challenge to /users/{user_id}/factors/{factor_id}/challenge
  • /mfa/user_id/verify to /users/{user_id}/factors/{factor_id}/verify
  • /mfa/user_id/enroll to /users/{user_id}/factors/{factor_id}/
    And more

This is done by storing and loading factors from the context and making use of them to perform relevant operations.

What is the current behavior?

Please link any relevant issues here.

What is the new behavior?

Feel free to include screenshots if it includes visual changes.

Additional context

Add any other context or screenshots.

@J0 J0 changed the title Patch MFA Routes Refactor MFA Routes Jul 29, 2022
@J0 J0 requested review from kangmingtay, inian and hf July 29, 2022 08:02
@J0 J0 merged commit 22effe7 into mfa Jul 29, 2022
@J0 J0 deleted the j0_patch_mfa_routes branch July 29, 2022 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant