Skip to content

Conversation

@vpomerleau
Copy link
Contributor

@vpomerleau vpomerleau commented Sep 10, 2025

NOTE: This PR contains 2 commits, only 00ada1d is part of the review scope here.

Because

  • We want to guard the totp creation endpoints and flow

This pull request

  • Add MFA guard to 2FA setup from settings
  • Add MFA version of POST /recoveryCodes, /recovery_phone/confirm, /recovery_phone/change
  • Add Swagger docs for recovery phone routes
  • Use MFA authenticated endpoints added in feat(mfa): Add MFA endpoints for TOTP setup #19473
  • Update functional tests

Issue that this pull request solves

Closes: FXA-12229

Checklist

Put an x in the boxes that apply

  • My commit is GPG signed.
  • If applicable, I have modified or added tests which pass locally.
  • I have added necessary documentation (if appropriate).
  • I have verified that my changes render correctly in RTL (if appropriate).

Screenshots (Optional)

Please attach the screenshots of the changes made in case of change in user interface.

Other information (Optional)

@vpomerleau vpomerleau force-pushed the FXA-12229 branch 2 times, most recently from 7656f1c to 00ada1d Compare September 18, 2025 03:02
@vpomerleau vpomerleau changed the title WIP feat(auth, settings): Add MFA guard to 2FA setup from settings feat(settings): Add MFA guard to 2FA setup from settings Sep 18, 2025
@vpomerleau vpomerleau marked this pull request as ready for review September 18, 2025 03:21
@vpomerleau vpomerleau requested a review from a team as a code owner September 18, 2025 03:21
@dschom dschom self-requested a review September 18, 2025 17:36
Copy link
Contributor

@dschom dschom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a drive by with coments. I'll do a little manual testing, but the changes look great. Thanks for extra clean up, btw!

@vpomerleau vpomerleau force-pushed the FXA-12229 branch 5 times, most recently from 83e818b to e4d55c0 Compare September 26, 2025 21:54
Because:

* We want to guard the totp creation endpoints and flow

This commit:

* Add MFA authentication variants of the 2FA setup endpoints (existing endpoints conserved for inline flow)
* Add MFA guard to 2FA setup from settings

Closes #FXA-12229
Copy link
Contributor

@dschom dschom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just did some manual testing, and it looks good to me! Thanks for these changes.

@vpomerleau vpomerleau merged commit 4151fab into main Oct 3, 2025
19 checks passed
@vpomerleau vpomerleau deleted the FXA-12229 branch October 3, 2025 19:42
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.

3 participants