Skip to content

Commit 1677145

Browse files
feat(authenticator): add passwordless authentication support (#6783)
1 parent 8ae77fa commit 1677145

File tree

75 files changed

+4323
-152
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+4323
-152
lines changed

.changeset/spotty-jokes-carry.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@aws-amplify/ui-react-core': minor
3+
'@aws-amplify/ui-react': minor
4+
'@aws-amplify/ui': minor
5+
---
6+
7+
Add passwordless authentication support
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
2+
3+
#amplify-do-not-edit-begin
4+
amplify/\#current-cloud-backend
5+
amplify/.config/local-*
6+
amplify/logs
7+
amplify/mock-data
8+
amplify/mock-api-resources
9+
amplify/backend/amplify-meta.json
10+
amplify/backend/.temp
11+
build/
12+
dist/
13+
node_modules/
14+
aws-exports.js
15+
awsconfiguration.json
16+
amplifyconfiguration.json
17+
amplifyconfiguration.dart
18+
amplify-build-config.json
19+
amplify-gradle-config.json
20+
amplifytools.xcconfig
21+
.secret-*
22+
**.sample
23+
#amplify-do-not-edit-end
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"files.exclude": {
3+
"amplify/.config": true,
4+
"amplify/**/*-parameters.json": true,
5+
"amplify/**/amplify.state": true,
6+
"amplify/**/transform.conf.json": true,
7+
"amplify/#current-cloud-backend": true,
8+
"amplify/backend/amplify-meta.json": true,
9+
"amplify/backend/awscloudformation": true
10+
}
11+
}
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Auth with Passwordless
2+
3+
This backend is configured manually via AWS Console and Amplify CLI as passwordless features are not supported by Amplify CLI/Admin UI.
4+
5+
- Authentication
6+
- `Email` login mechanism
7+
- Passwordless authentication methods:
8+
- Email OTP
9+
- SMS OTP
10+
- WebAuthn/Passkeys
11+
- Password authentication (traditional)
12+
- Preferred challenge: EMAIL_OTP
13+
14+
## Configuration
15+
16+
This environment uses a manually configured Cognito User Pool with passwordless authentication enabled.
17+
18+
## Setup Steps
19+
20+
This environment was created following the `auth-with-totp-mfa` example pattern:
21+
22+
1. Created Cognito User Pool manually with USER_AUTH flow support
23+
2. Created Identity Pool and IAM roles
24+
3. Initialized Amplify project and imported Cognito resources
25+
4. Manually configured passwordless authentication in Cognito User Pool via AWS Console
26+
27+
## Using this Backend
28+
29+
Pull the existing configuration:
30+
31+
```shell
32+
yarn pull
33+
```
34+
35+
External contributors can re-create this backend by running:
36+
37+
```shell
38+
amplify init
39+
```

environments/auth/auth-with-passwordless/amplify/.config/project-config.json

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

environments/auth/auth-with-passwordless/amplify/backend/auth/authwithpasswordlessfbd75a77/cli-inputs.json

Lines changed: 48 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

environments/auth/auth-with-passwordless/amplify/backend/backend-config.json

Lines changed: 31 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

environments/auth/auth-with-passwordless/amplify/backend/tags.json

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

environments/auth/auth-with-passwordless/amplify/backend/types/amplify-dependent-resources-ref.d.ts

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

environments/auth/auth-with-passwordless/amplify/cli.json

Lines changed: 63 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)