-
Notifications
You must be signed in to change notification settings - Fork 199
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): add passwordless support #3920
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* feat(auth): adding support for email mfa * fix swift lint warning * worked on a review comment * adding integration tests wave 1 * integration tests wave 2 * integration tests wave 3 * Add test setup instructions wave 4 * Add edge case * update readme to include graphQL details
* feat(Auth): Adding List WebAuthn API * feat(Auth): Adding associate and delete WebAuthn credentials APIs * Addding missing transports array in the credentials payload * Adding friendlyName to AuthWebAuthnCredential * Adding excludedCredentials to avoid multiple PassKeys for the same device * Adding pagination support in the list API * Renaming CredentialPayload to CredentialRegistrationPayload * Addressing PR comments
* feat(auth): add passwordless OTP implementation * add fallback password and password srp flows * add web auth n states * modifying states
…155) * feat(auth): add passwordless OTP implementation * add fallback password and password srp flows * add web auth n states * modifying states * feat(Auth): Implementing signIn with WebAuthn * Adding support for a presentation anchor in sign in and confirm sign in options * Fixing errors * Addressing PR comments * fix build error --------- Co-authored-by: Harshdeep Singh <[email protected]>
…uthn request, if the first one fails (#158)
* add autoSignIn() category API definitions (#152) * add autoSignIn() category API definitions * add sign up step for auto sign in * add state machine changes for autoSignIn() and signUp() (#154) * add autoSignIn() category API definitions * add sign up step for auto sign in * add state machine changes * add events and update resolvers * update sign up events and resolvers * add updates to resolver for auto sign in * update confirm sign up flow and debug code * Address review comments --------- Co-authored-by: Harsh <[email protected]> * update auto sign state machine events and resolver (#157) * update auto sign state machine events and resolver * Address review comments * update sign up and auto sign in unit tests (#159) * update sign up and auto sign in unit tests * add auto sign in tests and refactor existing tests * Add more service error tests * Address review changes --------- Co-authored-by: Harsh <[email protected]>
* feat(auth): add passwordless preferred flow * adding confirm device and device srp flows to user auth * update message * worked on review comments * update
… tests (#161) * chore(auth): add more auto sign in and sign up state machine/e2e unit tests * Address review comments
…ging into passwordless
* chore: Updating to the renamed WebAuthn APIs * Fixing unit tests
* test: Adding AssociateWebAuthn unit tests * test: Adding ListWebAuthnCredentials unit tests * test: Adding DeleteWebAuthnCredential unit tests * chore: simplifying how webauthn errors are handled * adressing PR comments
…ign in (#166) * chore(auth): add integration tests for passwordless signup and auto sign in * remove unused code * refactor code
* chore: add integration tests for sign in flows * Update AuthSignInWithPasswordUsingUserAuthTests.swift * Add more integration tests * update
* test: Adding integration tests for WebAuthn APIs * chore: Adding webauthn integration workflow * Refactoring the code to remove unnecesary waits and make it more easy to read
…ils (#170) * fix: Fixing service errors being reported as .unknown when sign in fails. Also adding proper WebAuthn cases to the AWSCognitoAuthError enum. * addressing PR comment
…e is in signing in state (#172) * fix(auth): fix resolvers and tasks for auto sign in when state machine is in signin in state * fix indentation
harsh62
changed the title
feat(auth): add passwrodless support
feat(auth): add passwordless support
Nov 22, 2024
harsh62
temporarily deployed
to
IntegrationTest
November 22, 2024 18:55 — with
GitHub Actions
Inactive
harsh62
temporarily deployed
to
IntegrationTest
November 25, 2024 17:36 — with
GitHub Actions
Inactive
harsh62
temporarily deployed
to
IntegrationTest
November 25, 2024 17:36 — with
GitHub Actions
Inactive
harsh62
temporarily deployed
to
IntegrationTest
November 25, 2024 17:36 — with
GitHub Actions
Inactive
harsh62
temporarily deployed
to
IntegrationTest
November 25, 2024 17:36 — with
GitHub Actions
Inactive
harsh62
temporarily deployed
to
IntegrationTest
November 25, 2024 17:39 — with
GitHub Actions
Inactive
harsh62
temporarily deployed
to
IntegrationTest
November 25, 2024 17:39 — with
GitHub Actions
Inactive
harsh62
temporarily deployed
to
IntegrationTest
November 25, 2024 17:39 — with
GitHub Actions
Inactive
harsh62
temporarily deployed
to
IntegrationTest
November 25, 2024 17:39 — with
GitHub Actions
Inactive
harsh62
temporarily deployed
to
IntegrationTest
November 25, 2024 17:39 — with
GitHub Actions
Inactive
harsh62
temporarily deployed
to
IntegrationTest
November 25, 2024 17:39 — with
GitHub Actions
Inactive
harsh62
temporarily deployed
to
IntegrationTest
November 25, 2024 17:39 — with
GitHub Actions
Inactive
harsh62
temporarily deployed
to
IntegrationTest
November 25, 2024 17:39 — with
GitHub Actions
Inactive
harsh62
temporarily deployed
to
IntegrationTest
November 25, 2024 17:39 — with
GitHub Actions
Inactive
harsh62
temporarily deployed
to
IntegrationTest
November 25, 2024 17:39 — with
GitHub Actions
Inactive
harsh62
temporarily deployed
to
IntegrationTest
November 25, 2024 17:39 — with
GitHub Actions
Inactive
harsh62
temporarily deployed
to
IntegrationTest
November 25, 2024 17:39 — with
GitHub Actions
Inactive
harsh62
temporarily deployed
to
IntegrationTest
November 25, 2024 17:39 — with
GitHub Actions
Inactive
harsh62
temporarily deployed
to
IntegrationTest
November 25, 2024 17:39 — with
GitHub Actions
Inactive
harsh62
temporarily deployed
to
IntegrationTest
November 25, 2024 17:39 — with
GitHub Actions
Inactive
harsh62
temporarily deployed
to
IntegrationTest
November 25, 2024 17:39 — with
GitHub Actions
Inactive
harsh62
temporarily deployed
to
IntegrationTest
November 25, 2024 17:39 — with
GitHub Actions
Inactive
harsh62
temporarily deployed
to
IntegrationTest
November 25, 2024 17:39 — with
GitHub Actions
Inactive
harsh62
temporarily deployed
to
IntegrationTest
November 25, 2024 17:39 — with
GitHub Actions
Inactive
harsh62
had a problem deploying
to
IntegrationTest
November 25, 2024 17:39 — with
GitHub Actions
Failure
harsh62
temporarily deployed
to
IntegrationTest
November 25, 2024 17:39 — with
GitHub Actions
Inactive
harsh62
temporarily deployed
to
IntegrationTest
November 25, 2024 17:39 — with
GitHub Actions
Inactive
harsh62
temporarily deployed
to
IntegrationTest
November 25, 2024 18:10 — with
GitHub Actions
Inactive
thisisabhash
approved these changes
Nov 25, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue #
Description
This PR adds support for Cognito's new Passwordless Sign In Flows.
This includes the following new functionality for the Auth category:
Passwordless Sign-Up using a One Time Passcode (OTP) sent to a user's email address or SMS number
New USER_AUTH flow that can be used to sign in with any of the following mechanisms
WebAuthn credential management APIs
General Checklist
Given When Then
inline code documentation and are named accordinglytestThing_condition_expectation()
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.