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)?
@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)