Skip to content
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(environments): add optional-totp-and-sms-mfa environment #2872

Merged
merged 9 commits into from
Nov 2, 2022
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/ SMS MFA required](screenshot-login.png)

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

![Screenshot of 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.