Cognito login issue

0

I have created a user pool on cognito but when i call initiate_auth() or or sign_up() function with email of length longer than 128 characters in the "USERNAME" attribute it gives "InvalidParameterException". Is there any way i can change the allowed length for the email to sing_up or log in??

feita há um ano311 visualizações
1 Resposta
2
Resposta aceita

Hi, as per https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_AdminCreateUser.html. the AdminCreateUser accepts username only up to 128 chars:

Username
The username for the user. Must be unique within the user pool. Must be a 
UTF-8 string between 1 and 128 characters. After the user is created, 
the username can't be changed.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 128.

AFAIK, you cannot extend it.

Best, Didier

profile pictureAWS
ESPECIALISTA
respondido há um ano
profile picture
ESPECIALISTA
avaliado há um ano

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas