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

질문됨 일 년 전302회 조회
1개 답변
2
수락된 답변

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
전문가
답변함 일 년 전
profile picture
전문가
검토됨 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠