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

No MFA Challenge anymore ??? #6138

Closed
mpgo13 opened this issue Jun 22, 2020 · 14 comments
Closed

No MFA Challenge anymore ??? #6138

mpgo13 opened this issue Jun 22, 2020 · 14 comments
Labels
Cognito Related to cognito issues pending-close-response-required A response is required for this issue to remain open, it will be closed within the next 7 days. Service Team Issues asked to the Service Team

Comments

@mpgo13
Copy link

mpgo13 commented Jun 22, 2020

Hi,

We are facing all of a sudden an issue with Cognito not asking it's users for MFA Challenge anymore.

  1. We haven't changed anything related on our site.
  2. Tested with different Browsers and IP's

Would you be able to look into this?

Have a look at these requests in eu-central-1 region:

date: Mon, 22 Jun 2020 19:46:18 GMT
x-amzn-requestid: 84d8f97b-3704-4c95-bc28-dfc69d9471fa
x-amzn-requestid: 4195fbe0-53f4-448a-b284-6bc57765966d
x-amzn-requestid: e252bc4d-fe76-409e-a366-20022e9a68cc

@mpgo13 mpgo13 added the to-be-reproduced Used in order for Amplify to reproduce said issue label Jun 22, 2020
@elorzafe
Copy link
Contributor

@mpgo13 What is the MFA configuration on the userpool? If is optional the user can disable.

@elorzafe elorzafe added Cognito Related to cognito issues Service Team Issues asked to the Service Team pending-close-response-required A response is required for this issue to remain open, it will be closed within the next 7 days. labels Jun 23, 2020
@mpgo13
Copy link
Author

mpgo13 commented Jun 23, 2020

@elorzafe userpool is configured with optional MFA, but users have setup MFA and they used to get MFA challenge before.

Here one user (output of admin-get-user):

{
    "Username": "xxx",
    "UserAttributes": [
        {
            "Name": "sub",
            "Value": "xxx"
        },
        {
            "Name": "email_verified",
            "Value": "true"
        },
        {
            "Name": "name",
            "Value": "xxx"
        },
        {
            "Name": "phone_number_verified",
            "Value": "true"
        },
        {
            "Name": "phone_number",
            "Value": "xxx"
        },
        {
            "Name": "email",
            "Value": "xxx"
        }
    ],
    "UserCreateDate": "2020-05-08T05:24:50.856000+00:00",
    "UserLastModifiedDate": "2020-05-28T05:40:16.931000+00:00",
    "Enabled": true,
    "UserStatus": "CONFIRMED",
    "PreferredMfaSetting": "SOFTWARE_TOKEN_MFA",
    "UserMFASettingList": [
        "SOFTWARE_TOKEN_MFA"
    ]
}

@stale stale bot removed the pending-close-response-required A response is required for this issue to remain open, it will be closed within the next 7 days. label Jun 23, 2020
@sammartinez sammartinez removed the to-be-reproduced Used in order for Amplify to reproduce said issue label Jun 23, 2020
@sammartinez
Copy link
Contributor

@mpgo13 Are you using Amplify with your Amazon Cognito service?

@sammartinez sammartinez added the pending-close-response-required A response is required for this issue to remain open, it will be closed within the next 7 days. label Jun 24, 2020
@mpgo13
Copy link
Author

mpgo13 commented Jun 24, 2020 via email

@elorzafe
Copy link
Contributor

@mpgo13 could be a chance Time-based One-time Password setting on the User Pool to be disabled?

@stale stale bot removed the pending-close-response-required A response is required for this issue to remain open, it will be closed within the next 7 days. label Jun 26, 2020
@mpgo13
Copy link
Author

mpgo13 commented Jun 26, 2020

@elorzafe both TOTP and SMS are checked in AWS console.

image

here is my userpool config output from aws cognito-idp describe-user-pool:

{
    "UserPool": {
        "Id": "USER-POOL-ID",
        "Name": "USER-POOL-NAME",
        "Policies": {
            "PasswordPolicy": {
                "MinimumLength": 8,
                "RequireUppercase": true,
                "RequireLowercase": true,
                "RequireNumbers": true,
                "RequireSymbols": false,
                "TemporaryPasswordValidityDays": 14
            }
        },
        "LambdaConfig": {},
        "LastModifiedDate": "2020-06-23T01:16:43.138000+00:00",
        "CreationDate": "2020-05-05T01:06:07.868000+00:00",
        "SchemaAttributes": [
            {
                "Name": "sub",
                "AttributeDataType": "String",
                "DeveloperOnlyAttribute": false,
                "Mutable": false,
                "Required": true,
                "StringAttributeConstraints": {
                    "MinLength": "1",
                    "MaxLength": "2048"
                }
            },
            {
                "Name": "name",
                "AttributeDataType": "String",
                "DeveloperOnlyAttribute": false,
                "Mutable": true,
                "Required": false,
                "StringAttributeConstraints": {
                    "MinLength": "0",
                    "MaxLength": "2048"
                }
            },
            {
                "Name": "given_name",
                "AttributeDataType": "String",
                "DeveloperOnlyAttribute": false,
                "Mutable": true,
                "Required": false,
                "StringAttributeConstraints": {
                    "MinLength": "0",
                    "MaxLength": "2048"
                }
            },
            {
                "Name": "family_name",
                "AttributeDataType": "String",
                "DeveloperOnlyAttribute": false,
                "Mutable": true,
                "Required": false,
                "StringAttributeConstraints": {
                    "MinLength": "0",
                    "MaxLength": "2048"
                }
            },
            {
                "Name": "middle_name",
                "AttributeDataType": "String",
                "DeveloperOnlyAttribute": false,
                "Mutable": true,
                "Required": false,
                "StringAttributeConstraints": {
                    "MinLength": "0",
                    "MaxLength": "2048"
                }
            },
            {
                "Name": "nickname",
                "AttributeDataType": "String",
                "DeveloperOnlyAttribute": false,
                "Mutable": true,
                "Required": false,
                "StringAttributeConstraints": {
                    "MinLength": "0",
                    "MaxLength": "2048"
                }
            },
            {
                "Name": "preferred_username",
                "AttributeDataType": "String",
                "DeveloperOnlyAttribute": false,
                "Mutable": true,
                "Required": false,
                "StringAttributeConstraints": {
                    "MinLength": "0",
                    "MaxLength": "2048"
                }
            },
            {
                "Name": "profile",
                "AttributeDataType": "String",
                "DeveloperOnlyAttribute": false,
                "Mutable": true,
                "Required": false,
                "StringAttributeConstraints": {
                    "MinLength": "0",
                    "MaxLength": "2048"
                }
            },
            {
                "Name": "picture",
                "AttributeDataType": "String",
                "DeveloperOnlyAttribute": false,
                "Mutable": true,
                "Required": false,
                "StringAttributeConstraints": {
                    "MinLength": "0",
                    "MaxLength": "2048"
                }
            },
            {
                "Name": "website",
                "AttributeDataType": "String",
                "DeveloperOnlyAttribute": false,
                "Mutable": true,
                "Required": false,
                "StringAttributeConstraints": {
                    "MinLength": "0",
                    "MaxLength": "2048"
                }
            },
            {
                "Name": "email",
                "AttributeDataType": "String",
                "DeveloperOnlyAttribute": false,
                "Mutable": true,
                "Required": false,
                "StringAttributeConstraints": {
                    "MinLength": "0",
                    "MaxLength": "2048"
                }
            },
            {
                "Name": "email_verified",
                "AttributeDataType": "Boolean",
                "DeveloperOnlyAttribute": false,
                "Mutable": true,
                "Required": false
            },
            {
                "Name": "gender",
                "AttributeDataType": "String",
                "DeveloperOnlyAttribute": false,
                "Mutable": true,
                "Required": false,
                "StringAttributeConstraints": {
                    "MinLength": "0",
                    "MaxLength": "2048"
                }
            },
            {
                "Name": "birthdate",
                "AttributeDataType": "String",
                "DeveloperOnlyAttribute": false,
                "Mutable": true,
                "Required": false,
                "StringAttributeConstraints": {
                    "MinLength": "10",
                    "MaxLength": "10"
                }
            },
            {
                "Name": "zoneinfo",
                "AttributeDataType": "String",
                "DeveloperOnlyAttribute": false,
                "Mutable": true,
                "Required": false,
                "StringAttributeConstraints": {
                    "MinLength": "0",
                    "MaxLength": "2048"
                }
            },
            {
                "Name": "locale",
                "AttributeDataType": "String",
                "DeveloperOnlyAttribute": false,
                "Mutable": true,
                "Required": false,
                "StringAttributeConstraints": {
                    "MinLength": "0",
                    "MaxLength": "2048"
                }
            },
            {
                "Name": "phone_number",
                "AttributeDataType": "String",
                "DeveloperOnlyAttribute": false,
                "Mutable": true,
                "Required": false,
                "StringAttributeConstraints": {
                    "MinLength": "0",
                    "MaxLength": "2048"
                }
            },
            {
                "Name": "phone_number_verified",
                "AttributeDataType": "Boolean",
                "DeveloperOnlyAttribute": false,
                "Mutable": true,
                "Required": false
            },
            {
                "Name": "address",
                "AttributeDataType": "String",
                "DeveloperOnlyAttribute": false,
                "Mutable": true,
                "Required": false,
                "StringAttributeConstraints": {
                    "MinLength": "0",
                    "MaxLength": "2048"
                }
            },
            {
                "Name": "updated_at",
                "AttributeDataType": "Number",
                "DeveloperOnlyAttribute": false,
                "Mutable": true,
                "Required": false,
                "NumberAttributeConstraints": {
                    "MinValue": "0"
                }
            }
        ],
        "UsernameAttributes": [
            "email"
        ],
        "VerificationMessageTemplate": {
            "DefaultEmailOption": "CONFIRM_WITH_CODE"
        },
        "MfaConfiguration": "OPTIONAL",
        "EstimatedNumberOfUsers": 25,
        "EmailConfiguration": {
            "SourceArn": "ARN-EMAIL-CONFIG",
            "EmailSendingAccount": "DEVELOPER",
            "From": "FROM-EMAIL"
        },
        "SmsConfiguration": {
            "SnsCallerArn": "ARN-SMS-CONFIG",
            "ExternalId": "EXTERNAL-ID"
        },
        "UserPoolTags": {},
        "AdminCreateUserConfig": {
            "AllowAdminCreateUserOnly": true,
            "UnusedAccountValidityDays": 14
        },
        "UserPoolAddOns": {
            "AdvancedSecurityMode": "OFF"
        },
        "UsernameConfiguration": {
            "CaseSensitive": true
        },
        "Arn": "USER-POOL-ARN",
        "AccountRecoverySetting": {
            "RecoveryMechanisms": [
                {
                    "Priority": 1,
                    "Name": "admin_only"
                }
            ]
        }
    }
}

@stale
Copy link

stale bot commented Jul 26, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the pending-close-response-required A response is required for this issue to remain open, it will be closed within the next 7 days. label Jul 26, 2020
@mpgo13
Copy link
Author

mpgo13 commented Jul 26, 2020 via email

@stale stale bot removed the pending-close-response-required A response is required for this issue to remain open, it will be closed within the next 7 days. label Jul 26, 2020
@ericclemmons
Copy link
Contributor

@mpgo13 You mentioned it works with a new user pool but fails for the existing user pool? Just to confirm, have the spending limits been increased for Amazon SNS? (#6344 had similar issues)

@mpgo13
Copy link
Author

mpgo13 commented Aug 13, 2020

@ericclemmons SNS spending limits have been increased before this issue happened.

We only intend using SOFTWARE_TOKEN_MFA, is there any requirement to have SNS properly configured on the user pool to use SOFTWARE_TOKEN_MFA without actually using any SMS features ?

@mpgo13
Copy link
Author

mpgo13 commented Aug 17, 2020

What I noticed today:

  • Logging in with one of the users who had definately activated MFA, didn't get MFA challenge
  • After setting a new MFA device (using set-preferred-mfa-settings from API), the user finally got his MFA challenge again

@stale
Copy link

stale bot commented Sep 19, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the pending-close-response-required A response is required for this issue to remain open, it will be closed within the next 7 days. label Sep 19, 2020
@stale
Copy link

stale bot commented Sep 28, 2020

This issue has been automatically closed because of inactivity. Please open a new issue if are still encountering problems.

@stale stale bot closed this as completed Sep 28, 2020
@github-actions
Copy link

This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs.

Looking for a help forum? We recommend joining the Amplify Community Discord server *-help channels or Discussions for those types of questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 29, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Cognito Related to cognito issues pending-close-response-required A response is required for this issue to remain open, it will be closed within the next 7 days. Service Team Issues asked to the Service Team
Projects
None yet
Development

No branches or pull requests

4 participants