-
Notifications
You must be signed in to change notification settings - Fork 202
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
Conversation
logVerbose("\(#fileID) Sending event \(responseEvent)", | ||
environment: environment) | ||
await dispatcher.send(responseEvent) | ||
// TODO: HS: |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.") |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch.. Fixed.
* feat(Auth): Adding TOTP tasks and requests to AWSAuthCognitoPlugin * feat(Auth): Adding TOTP state machine actions * working on review comment
* feat(Auth): Adding TOTP tasks and requests to AWSAuthCognitoPlugin * feat(Auth): Adding TOTP state machine actions * working on review comment
* feat(Auth): Adding TOTP tasks and requests to AWSAuthCognitoPlugin * feat(Auth): Adding TOTP state machine actions * working on review comment
* feat(Auth): Adding TOTP tasks and requests to AWSAuthCognitoPlugin * feat(Auth): Adding TOTP state machine actions * working on review comment
* feat(Auth): Adding TOTP tasks and requests to AWSAuthCognitoPlugin * feat(Auth): Adding TOTP state machine actions * working on review comment
* feat(Auth): Adding TOTP tasks and requests to AWSAuthCognitoPlugin * feat(Auth): Adding TOTP state machine actions * working on review comment
Description
TOTP PR Number # 5
Depends on:
Changes
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.