Skip to content

Commit

Permalink
feat(environments): add optional-totp-and-sms-mfa environment (#2872)
Browse files Browse the repository at this point in the history
* Add optional mfa environment

* fix typo

* artifact update

* Update README with correct info

* Update environments/auth/auth-with-optional-totp-and-sms-mfa/README.md

* Update environments/auth/auth-with-optional-totp-and-sms-mfa/README.md
  • Loading branch information
wlee221 authored Nov 2, 2022
1 parent 035ab96 commit 62e5a2d
Show file tree
Hide file tree
Showing 12 changed files with 255 additions and 0 deletions.
22 changes: 22 additions & 0 deletions environments/auth/auth-with-optional-totp-and-sms-mfa/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@


#amplify-do-not-edit-begin
amplify/\#current-cloud-backend
amplify/.config/local-*
amplify/logs
amplify/mock-data
amplify/backend/amplify-meta.json
amplify/backend/.temp
build/
dist/
node_modules/
aws-exports.js
awsconfiguration.json
amplifyconfiguration.json
amplifyconfiguration.dart
amplify-build-config.json
amplify-gradle-config.json
amplifytools.xcconfig
.secret-*
**.sample
#amplify-do-not-edit-end
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"files.exclude": {
"amplify/.config": true,
"amplify/**/*-parameters.json": true,
"amplify/**/amplify.state": true,
"amplify/**/transform.conf.json": true,
"amplify/#current-cloud-backend": true,
"amplify/backend/amplify-meta.json": true,
"amplify/backend/awscloudformation": true
}
}
21 changes: 21 additions & 0 deletions environments/auth/auth-with-optional-totp-and-sms-mfa/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Auth with Optional TOTP and SMS MFA

This backend is configured with Amplify Studio:

- Authentication

- `Email` login mechanism

![Screenshot of phone number configuration w/ optional MFAs](screenshot-login.png)

- `Email` and `Phone number` sign up attribute

![Screenshot of email and phone number sign up attribute](screenshot-signup.png)

## Using this Backend

External contributors can re-create this backend by running:

```shell
amplify init
```

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"private": true,
"name": "auth-with-optional-totp-and-sms-mfa-environment",
"version": "0.0.1",
"scripts": {
"pull": "amplify pull --appId d2vk0gw2nmhjow --envName staging"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 62e5a2d

Please sign in to comment.