Commit edd2aa7
Merge pull request #3920 from aws-amplify/passwordless
* feat(auth): adding support for email mfa (#3892)
* 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
* chore: initial commit to add sdk with passwordless models
* chore: model update
* feat(Auth): Adding WebAuthn APIs (#153)
* 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 sign with otp (#151)
* feat(auth): add passwordless OTP implementation
* add fallback password and password srp flows
* add web auth n states
* modifying states
* feat(Auth): Adding WebAuthn support to signIn and confirmSignIn APIs (#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]>
* fix: Fixing build issue when iOS 18/macOS 15 are not installed
* feat(WebAuthn): Adding support for retrying a confirmSignIn with WebAuthn request, if the first one fails (#158)
* feat(auth): add support for passwordless sign up and auto sign in (#160)
* 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]>
* chore: fix building of unit tests after sign up rebase
* feat(auth): adding passwordless sign in preferred flows (#162)
* feat(auth): add passwordless preferred flow
* adding confirm device and device srp flows to user auth
* update message
* worked on review comments
* update
* chore(auth): add more auto sign in and sign up state machine/e2e unit tests (#161)
* chore(auth): add more auto sign in and sign up state machine/e2e unit tests
* Address review comments
* chore: updated SDK and models
* chore: update integration test host app
* fix: Fixing build errors in watchOS/tvOS due to missing prechecks.
* feat(auth): adding an initial passwordless integration test with resources defined (#163)
* chore: update no-auth API's in the resolver
* chore: Updating to the renamed WebAuthn APIs (#164)
* chore: Updating to the renamed WebAuthn APIs
* Fixing unit tests
* chore: Adding unit tests for the WebAuthn APIs Tasks (#165)
* 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
* chore(auth): add integration tests for passwordless signup and auto sign 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 (#168)
* chore: add integration tests for sign in flows
* Update AuthSignInWithPasswordUsingUserAuthTests.swift
* Add more integration tests
* update
* chore: update sdk to use the latest models
* test: Adding integration tests for WebAuthn APIs (#169)
* 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
* fix: Fixing service errors being reported as .unknown when sign in fails (#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
* fix(auth): fix resolvers and tasks for auto sign in when state machine 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
* feat: Adding visionOS support to the WebAuthn APIs (#171)
* chore: using the latest version aws sdk
* chore: update changes needed for the sdk updated
* chore: fix swiftlint errors (#3921)
* chore: running passwordless integration tests on GEN2 backend
* chore: update test target for watchOS
* chore: fix OTP integration tests
* chore: update more integration tests
---------
Co-authored-by: Sebastian Villena <[email protected]>
Co-authored-by: Abhash Kumar Singh <[email protected]>File tree
183 files changed
+10617
-551
lines changed- .github/workflows
- AmplifyPlugins
- Auth
- Sources/AWSCognitoAuthPlugin
- Actions
- Federation
- SignIn
- MigrateAuth
- SRPAuth
- UserAuth
- WebAuthn
- SignUp
- ClientBehavior
- CredentialStorage
- HubEvents
- Models
- Errors
- Operations/Helpers
- Service
- ErrorMapping
- Helpers
- StateMachine
- CodeGen
- Data
- Errors
- Events
- States
- DebugInfo
- ErrorMapping
- Resolvers
- AuthState
- Authentication
- MigrateAuth
- SRP
- SignIn
- SignUp
- Support
- Constants
- Helpers
- StateMachineSupport
- Utils
- Task
- DeviceTasks
- Helpers
- Models
- Protocols
- Tests
- AWSCognitoAuthPluginUnitTests
- ActionTests
- InitiateAuthSRP
- VerifySignInChallenge
- ClientBehaviorTests
- ConfigurationTests
- HubEventTests
- Mocks
- ResolverTests
- AuthState
- SRPSignInState
- SignUpState
- Support
- TaskTests
- AuthorizationTests
- ClientBehaviorTests
- SignIn
- SignUp
- HostedUITests
- UserBehaviourTests
- WebAuthnBehaviourTests
- TestHarness/CodableStates
- TestResources/states
- AuthHostApp
- AuthHostApp.xcodeproj
- AuthIntegrationTests
- MFATests/EmailMFATests
- PasswordlessTests
- AuthWebAuthnApp
- AuthWebAuthnApp.xcodeproj
- AuthWebAuthnAppUITests
- AuthWebAuthnApp
- Helpers
- LocalServer
- Geo/Tests/AWSLocationGeoPluginTests/Mocks
- Internal/Tests/InternalAWSPinpointUnitTests
- Storage/Sources/AWSS3StoragePlugin/Dependency
- AmplifyTestCommon/Mocks
- Amplify/Categories/Auth
- Models
- Request
- Result
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
183 files changed
+10617
-551
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
67 | 71 | | |
68 | 72 | | |
69 | 73 | | |
| |||
Lines changed: 51 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
105 | 109 | | |
106 | 110 | | |
107 | 111 | | |
| |||
Lines changed: 35 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
11 | 14 | | |
12 | 15 | | |
13 | 16 | | |
| |||
26 | 29 | | |
27 | 30 | | |
28 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
29 | 36 | | |
30 | 37 | | |
31 | 38 | | |
| |||
52 | 59 | | |
53 | 60 | | |
54 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
55 | 66 | | |
56 | 67 | | |
57 | 68 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
19 | 24 | | |
20 | 25 | | |
21 | 26 | | |
Lines changed: 52 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
0 commit comments