amplify-ui icon indicating copy to clipboard operation
amplify-ui copied to clipboard

Authenticator missing MFA Code Type on Sign Up with Email Confirmation [Angular]

Open HarrisonPace opened this issue 1 year ago • 2 comments

Before creating a new issue, please confirm:

On which framework/platform are you having an issue?

Angular

Which UI component?

Authenticator

How is your app built?

Webpack 5

What browsers are you seeing the problem on?

Chrome

Which region are you seeing the problem in?

No response

Please describe your bug.

When signing up in Amplify using the Authenticator UI (Angular), the UI displays Code * when requesting the SMS code.

It is not evident what code the UI is expecting (SMS/TOTP, etc.).

image

image

What's the expected behaviour?

It should display something equivalent Please enter the code sent to you via SMS:.

Help us reproduce the bug!

Currently my sign up process both verifies the Email Address and requires a SMS code for MFA.

When signing up the Email Confirmation loads as expected:

image

The SMS Confirmation does not.

Code Snippet

      <amplify-authenticator [formFields]="formFields" initialState="signIn" [signUpAttributes]="['name', 'phone_number']" [hideSignUp]="false">
        <ng-template amplifySlot="header">
          <div style="padding: var(--amplify-space-large); text-align: center">
            <img
              class="amplify-image"
              alt="Logo"
              src="assets/images/branding.png"
            />
          </div>
        </ng-template>
        <ng-template amplifySlot="authenticated" let-user="user" let-signOut="signOut">
          <!--<button (click)="signOut()">Sign Out</button>-->
          <p>Logging in...</p>
        </ng-template>
        <ng-template amplifySlot="footer">
          <div style="padding: var(--amplify-space-large); text-align: center">
            <p class="amplify-text" style="color: var(--amplify-colors-neutral-80)">
              Footer Text
            </p>
          </div>
        </ng-template>
      </amplify-authenticator>

Console log output

No response

Additional information and screenshots

No response

HarrisonPace avatar Jan 11 '24 05:01 HarrisonPace

@thehaxxa Thanks for raising this. To aid in reproduction, can you please share your amplify configuration file here (with all sensitive data removed)?

calebpollman avatar Jan 30 '24 00:01 calebpollman

@thehaxxa Thanks for raising this. To aid in reproduction, can you please share your amplify configuration file here (with all sensitive data removed)?

@calebpollman See below:

/* eslint-disable */
// WARNING: DO NOT EDIT. This file is automatically generated by AWS Amplify. It will be overwritten.

const awsmobile = {
    "aws_project_region": "ap-southeast-2",
    "aws_cloud_logic_custom": [
        {
            "name": "AdminQueries",
            "endpoint": "[OMITTED]",
            "region": "ap-southeast-2"
        }
    ],
    "aws_cognito_region": "ap-southeast-2",
    "aws_user_pools_id": "[OMITTED]",
    "aws_user_pools_web_client_id": "[OMITTED]",
    "oauth": {},
    "aws_cognito_username_attributes": [
        "EMAIL",
        "PHONE_NUMBER"
    ],
    "aws_cognito_social_providers": [],
    "aws_cognito_signup_attributes": [
        "EMAIL",
        "FAMILY_NAME",
        "GIVEN_NAME",
        "PHONE_NUMBER"
    ],
    "aws_cognito_mfa_configuration": "ON",
    "aws_cognito_mfa_types": [
        "SMS",
        "TOTP"
    ],
    "aws_cognito_password_protection_settings": {
        "passwordPolicyMinLength": 8,
        "passwordPolicyCharacters": []
    },
    "aws_cognito_verification_mechanisms": [
        "EMAIL"
    ]
};


export default awsmobile;

HarrisonPace avatar Jan 31 '24 01:01 HarrisonPace

@HarrisonPace This has been fixed in the latest release of @aws-amplify/ui-angular (5.0.12). Can you upgrade your project and let us know if you are still encountering the issue?

calebpollman avatar Mar 15 '24 21:03 calebpollman

Closing out as this has been fixed.

reesscot avatar Apr 15 '24 23:04 reesscot