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

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

Closed
4 tasks done
HarrisonPace opened this issue Jan 11, 2024 · 4 comments
Closed
4 tasks done
Assignees
Labels
Angular An issue or a feature-request for Angular platform Authenticator An issue or a feature-request for an Authenticator UI Component bug Something isn't working

Comments

@HarrisonPace
Copy link

HarrisonPace commented Jan 11, 2024

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

@github-actions github-actions bot added the pending-triage Issue is pending triage label Jan 11, 2024
@ioanabrooks ioanabrooks added bug Something isn't working Angular An issue or a feature-request for Angular platform Authenticator An issue or a feature-request for an Authenticator UI Component and removed pending-triage Issue is pending triage labels Jan 11, 2024
@calebpollman
Copy link
Member

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

@HarrisonPace
Copy link
Author

HarrisonPace commented Jan 31, 2024

@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;

@calebpollman
Copy link
Member

@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 calebpollman self-assigned this Mar 15, 2024
@reesscot
Copy link
Contributor

Closing out as this has been fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Angular An issue or a feature-request for Angular platform Authenticator An issue or a feature-request for an Authenticator UI Component bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants