Cognito Userpool case sensitivity

345 Views Asked by At

Are Cognito userpool really case-insensitive by default? I have created a Cognito userpool configuring the email as the only login field, but when I try to login using some uppercase letters in my email I get a login error "Incorrect username or password."

The Cognito doc says :

Amazon Cognito user pools that you create in the AWS Management Console are case insensitive by default. When a user pool is case insensitive, [email protected] and [email protected] refer to the same user. When usernames in a user pool are case insensitive, the preferred_username and email attributes also are case insensitive.

Describing my user pool configuration i found: "UsernameAttributes": [ "email" ],

but nothing related to the case sensitive.

Have you some tips to figure out what the default behavior is for the email login?

Thanks in advance Lorenzo

1

There are 1 best solutions below

4
On

If you call DescribeUserPool with the CLI, you will get back the full information for the pool. Sometimes this is easier to read than looking through the tabs in the console. One of the returned properties is the setting for case sensitivity.

"UsernameConfiguration": { 
     "CaseSensitive": boolean
  },