Email & Phone Alias comes into play only when username sign-in option enabled?

0
Scenario #1: user pool sign-in option is set to Email & Phone number only. No Username.

I am able to sign-up user & sms verify phone number. However if i try to login with the phone number, I get UserNotFound Exception.

Scenario #2: user pool sign-in option is set to Email, Phone Number & Username

I am able to sign-up with dummy username, email & sms verify phone number. I am able to login with either (phone number, password) or (email, password) combination.

So the Alias (Email or Phone) comes into play only when username is set as a sign-in option ?

gefragt vor 2 Jahren259 Aufrufe
1 Antwort
0

You can select only email and phone number without username, but you will have to pick either email or phone number at sign-up as the user identifier. See the Cognito user pool sign-in options information, "If you select only phone number and email, your user will be prompted to select one of the two sign-in options when they sign up". So if you pick email at sign-up, then you can't use phone number to sign in.

AWS
beantwortet vor 2 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen