You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you have a User Pool with email as a UsernameAttribute, you can create a user by specifying an email address as their Username in the admin-create-user call. In Cognito (proper) the email address is stored in the email attribute and the Username is set to a generated sub UUID; however, in Cognito Local the email address is actually set as the Username.
What happens when you create a user in a pool with email in UsernameAttributes in Cognito?
Registering without providing an email attribute, with an email as username: username is validated as an email, sub generated, username set to sub, input username set as email attribute
With email attribute that doesn’t match username = “User email should be empty or same as username, since username attribute is email”
With email attribute that matches the username, sub generated, username set to sub, email attribute set to username/email attribute (whatever, they’re the same)
With a username attribute which isn’t an email = “Username should be an email”
Open questions:
What about a pool without email as a username attribute?
What about a pool with phone number or preferred_username?
Seems to be a bug where a user gets created even if their attributes are rejected?
Email validation on creating users (user exists with email) doesn't match
The text was updated successfully, but these errors were encountered:
When you have a User Pool with email as a UsernameAttribute, you can create a user by specifying an email address as their Username in the admin-create-user call. In Cognito (proper) the email address is stored in the email attribute and the Username is set to a generated sub UUID; however, in Cognito Local the email address is actually set as the Username.
What happens when you create a user in a pool with email in UsernameAttributes in Cognito?
Open questions:
The text was updated successfully, but these errors were encountered: