-
Notifications
You must be signed in to change notification settings - Fork 819
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
Changing Auth 'parameters.json' and 'template.yml' fails #5761
Comments
Sorry, I had a brain fart. Basically, simply add it to Resources:
(...skip)
UserPool:
(...skip)
Properties:
(..skip)
UsernameAttributes: !Ref usernameAttributes
(...I add the following right below usernameAttributes)
UsernameConfiguration:
CaseSensitive: false |
@xitanggg, I just updated yaml, but |
Which Your error seems to says that it couldn't read Also, make sure you haven't push |
Thanks for the quick response. With trial and error found that the below code is what is needed in the template file to do the magic. Meanning...no need to mention |
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 |
Which Category is your question related to?
Auth
Amplify CLI Version
4.32.0
What AWS Services are you utilizing?
AWS Cognito
Provide additional details e.g. code snippets
Hi, I am adding Auth with
amplify auth add
. The default Auth created by Amplify uses case sensitive username. For example, if email is used as username alias, hi@gmail.com and HI@gmail.com would be treated as two different usernames, which is not what most people wanted (This has been brought up before #4185 and remains unresolved).With the old version of Amplify CLI, we can modify the Auth Cloudformation Template directly by adding UsernameConfiguration to enable case insensitivity. (As mentioned in #3494)
However, with the new CLI that creates two files
parameters.json
andxxx-cloudformation-template.yml
, I am confused as to where to add this.In
parameters.json
, I had tried"usernameConfiguration": {"CaseSensitive": false}
or"usernameConfiguration": "{\n \"CaseSensitive\": false \n}"
.In
xxx-cloudformation-template.yml
, I addedbut I received the error
Property validation failure: [Value UsernameConfiguration} does not match type {Object}]
when I doamplify push
. I would appreciate any helps to resolve this. Thanks.The text was updated successfully, but these errors were encountered: