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

質問済み 1年前316ビュー
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
エキスパート
回答済み 1年前
profile picture
エキスパート
レビュー済み 1年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ