Amplify-cli: Case insensitive user pools?

Created on 22 Feb 2020  路  6Comments  路  Source: aws-amplify/amplify-cli

Which Category is your question related to?
Auth

Amplify CLI Version
14.13.4

What AWS Services are you utilizing?
Cognito

Per this article, newly created user pools are created to have case-insensitive usernames. Manually created pools have this enabled by default.

However, pools created through amplify push do NOT have case insensitive pools. How do I enable case insensitivity for new or existing pools (i expect the latter is not possible)?

auth feature-request

All 6 comments

@claym We don't have this feature available on CLI but it's scheduled for release. For the time being you can enable it in the Cloudformation template more information can be found at https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpool.html under _UsernameConfiguration_

      UsernameConfiguration:
        CaseSensitive: false

That worked. Thanks!

I received the error

UPDATE_FAILED UserPool AWS::Cognito::UserPool Thu Mar 12 2020 13:54:35 GMT-0400 (Eastern Daylight Time) Updates are not allowed for
property - UsernameConfiguration. (Service: AWSCognitoIdentityProvider; Status Code: 400; Error Code: InvalidParameterException; Request
ID: null)

when perform amplify push after adding

UsernameConfiguration:
CaseSensitive: false

to my amplify/backend/auth/myapp/myapp-cloudformation-template.yml file manually. What might be causing the issue?

Ok. This is stupid but it solves the issue. I basically remove auth entirely and recreate it. Then I add the configuration before doing amplify push.

It's not really feasible for me to remove auth and recreate it. Is there a fix for https://github.com/aws-amplify/amplify-cli/issues/3494#issuecomment-598194358 that doesn't require that?

Hi there guys, any update on this? The User Pool create via Amplify CLI is yet with the "Enable case insensitivity for username input" unchecked and disabled to be marked, any ideas?

I'm getting the same 400 error when adding the UsernameConfiguration

Resource Name: us-east-1_24x1azsMU (AWS::Cognito::UserPool)
Event Type: update
Reason: Updates are not allowed for property - UsernameConfiguration. (Service: AWSCognitoIdentityProvider; Status Code: 400; Error Code: InvalidParameterException; Request ID: null; Proxy: null)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mwarger picture mwarger  路  3Comments

darrentarrant picture darrentarrant  路  3Comments

gabriel-wilkes picture gabriel-wilkes  路  3Comments

nicksmithr picture nicksmithr  路  3Comments

nason picture nason  路  3Comments