aws-amplify / aws-amplify/amplify-cli
Do not ask for SMS Message template when user does not select it as MFA option
- Dominant language
- TypeScript
- Stars
- 2.9k
- Forks
- 825
- Avg merge
- 11d 23h
- Merged PRs (30d)
- 2
Description
### How did you install the Amplify CLI?
npm
### If applicable, what version of Node.js are you using?
20.5.1
### Amplify CLI Version
12.4.0
### What operating system are you using?
macOS
### Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
No manual changes made
### Describe the bug
As a user I should not see the SMS message template if I do not select it as a way of MFA.
### Expected behavior
I should skip to the messaging of the MFA option that I select
### Reproduction steps
1. Initialize Amplify project
2. Add authentication
3. Select manual configuration
4. Select User Sign-Up, Sign-In, connected with AWS IAM controls (Enables per-user Storage features for images or other content, Analytics, and more)
5. Select TOTP and deselect SMS for the MFA type
For user login, select the MFA types: Time-Based One-Time Password (TOTP)
Current: It shows SMS Message template even though user did not pick it
Expected: It skips the SMS Message template
### Project Identifier
_No response_
### Log output
```
# Put your logs below this line
```
### Additional information
_No response_
### Before submitting, please confirm:
- [X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
- [X] I have removed any sensitive information from my code snippets and submission.
Contributor guide
Research direction
Reproduce the authentication flow with Amplify CLI 12.4.0 using the listed steps, selecting TOTP while deselecting SMS. Trace the CLI's MFA configuration prompts; done when the SMS message template is skipped and the selected TOTP configuration continues normally.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- authentication, cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100