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

feat(Auth): Adding TOTP state machine actions #3044

Merged
merged 3 commits into from
Jul 4, 2023

Conversation

harsh62
Copy link
Member

@harsh62 harsh62 commented Jun 23, 2023

Description

TOTP PR Number # 5

Depends on:

Changes

  • Adds implementation of actions needed by the State Machine
  • Update UserPoolSignIn Helper to add details about TOTP

NOTE: The unit and integration tests will fail until all changes make it to the feature branch
(The PR is directed towards a feature branch)

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

logVerbose("\(#fileID) Sending event \(responseEvent)",
environment: environment)
await dispatcher.send(responseEvent)
// TODO: HS:
Copy link
Member

Choose a reason for hiding this comment

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

Remember to remove commented out code before releasing

Copy link
Member Author

Choose a reason for hiding this comment

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

Yep.. This is something I still need to work on.. Will remove it in a follow up PR.

case .selectMFAType:
return .init(nextStep: .continueSignInWithMFASelection(challenge.getAllowedMFATypesForSelection))
case .setUpMFA:
throw AuthError.unknown("Invalid state flow. setUpMFA is handled internally in `SignInState.resolvingTOTPSetup` state.")
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we use AuthError.invalidState here?

Copy link
Member Author

Choose a reason for hiding this comment

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

Nice catch.. Fixed.

@harsh62 harsh62 changed the base branch from feat/totp-pr4 to feat/totp-support July 3, 2023 16:20
@harsh62 harsh62 changed the base branch from feat/totp-support to feat/totp-pr4 July 3, 2023 16:21
Base automatically changed from feat/totp-pr4 to feat/totp-support July 3, 2023 17:39
@harsh62 harsh62 merged commit 56c4a21 into feat/totp-support Jul 4, 2023
@harsh62 harsh62 deleted the feat/totp-pr5 branch July 4, 2023 00:22
harsh62 added a commit that referenced this pull request Jul 4, 2023
* feat(Auth): Adding TOTP tasks and requests to AWSAuthCognitoPlugin

* feat(Auth): Adding TOTP state machine actions

* working on review comment
harsh62 added a commit that referenced this pull request Jul 19, 2023
* feat(Auth): Adding TOTP tasks and requests to AWSAuthCognitoPlugin

* feat(Auth): Adding TOTP state machine actions

* working on review comment
harsh62 added a commit that referenced this pull request Jul 25, 2023
* feat(Auth): Adding TOTP tasks and requests to AWSAuthCognitoPlugin

* feat(Auth): Adding TOTP state machine actions

* working on review comment
harsh62 added a commit that referenced this pull request Aug 1, 2023
* feat(Auth): Adding TOTP tasks and requests to AWSAuthCognitoPlugin

* feat(Auth): Adding TOTP state machine actions

* working on review comment
harsh62 added a commit that referenced this pull request Aug 28, 2023
* feat(Auth): Adding TOTP tasks and requests to AWSAuthCognitoPlugin

* feat(Auth): Adding TOTP state machine actions

* working on review comment
harsh62 added a commit that referenced this pull request Aug 28, 2023
* feat(Auth): Adding TOTP tasks and requests to AWSAuthCognitoPlugin

* feat(Auth): Adding TOTP state machine actions

* working on review comment
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