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

[Email MFA] Add support for EMAIL_OTP during sign in flows #13745

Merged
merged 4 commits into from
Aug 27, 2024

Conversation

jjarvisp
Copy link
Member

Description of changes

The purpose of this pull request is to add support for the CONFIRM_SIGN_IN_WITH_EMAIL_CODE challenge and selecting EMAIL as the delivery destination during the CONTINUE_SIGN_IN_WITH_MFA_SELECTION challenge.

MFA_SETUP challenge will be handled separately.

Issue #, if available

Description of how you validated changes

  • Manual testing
  • Unit tests

Checklist

  • PR description included
  • yarn test passes
  • Unit Tests are changed or added
  • Relevant documentation is changed or added (and PR referenced)

Checklist for repo maintainers

  • Verify E2E tests for existing workflows are working as expected or add E2E tests for newly added workflows
  • New source file paths included in this PR have been added to CODEOWNERS, if appropriate

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@jjarvisp jjarvisp force-pushed the feat/email-mfa-sign-in branch from 8aa39e8 to 1a7403f Compare August 22, 2024 20:30
Copy link
Member

@israx israx left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for adding the handleMFAChallenge method, it does reduce the code volume.

Co-authored-by: israx <70438514+israx@users.noreply.github.com>
@jjarvisp jjarvisp marked this pull request as ready for review August 23, 2024 15:37
@jjarvisp jjarvisp force-pushed the feat/email-mfa-sign-in branch from 476c6d0 to f5a65a5 Compare August 26, 2024 20:22
@jjarvisp jjarvisp merged commit df6cba9 into aws-amplify:feat/email-mfa Aug 27, 2024
28 checks passed
jjarvisp added a commit that referenced this pull request Sep 6, 2024
* Confirm Sign In With Email OTP

* Confirm Sign In Tests With Email OTP

* Update packages/auth/src/types/models.ts

Co-authored-by: israx <70438514+israx@users.noreply.github.com>

* Fix Errant Pascal Casing

---------

Co-authored-by: israx <70438514+israx@users.noreply.github.com>
jjarvisp added a commit that referenced this pull request Oct 31, 2024
* [Email MFA] Updating fetchMFAPreference and updateMFAPreference (#13720)

* add EMAIL MFA option in fetchMFAPreference

* add EMAIL MFA option in updateMFAPreference

* update fetchMFAPreference tests

* update updateMFAPreference tests

* update bundle size

* remove redundant assertions

* [Email MFA] Add support for EMAIL_OTP during sign in flows (#13745)

* Confirm Sign In With Email OTP

* Confirm Sign In Tests With Email OTP

* Update packages/auth/src/types/models.ts

Co-authored-by: israx <70438514+israx@users.noreply.github.com>

* Fix Errant Pascal Casing

---------

Co-authored-by: israx <70438514+israx@users.noreply.github.com>

* feat(auth): [EMAIL MFA] Sign In / Confirm Sign In With MFA_SETUP (#13760)

* Sign In / Confirm Sign In With MFA_SETUP

* Sign In State Management Tests

* Confirm Sign In Happy Path Tests

* Fix State Management Tests

* Apply Feedback

* loose email matching

* Remove Unnecessary Export

* Update SignInHelpers For Getting Allowed MFA Setup Types

* Add Error Case Unit Tests

* feat(auth): [EMAIL MFA] enable integ tests with backend configuration swapping (#13794)

* chore: enable mfa integ tests

* chore: add mfa-setup test def

* chore: temporarily enable push integ tests

* chore: disable push integ tests

* chore: address test strategy feedback

* chore: use trimmed challenge response

* chore: improved naming

* chore: update bundle size tests

* chore: remove trimmed challenge response

---------

Co-authored-by: israx <70438514+israx@users.noreply.github.com>
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.

4 participants