question

AbhayChandramouli-2076 avatar image
0 Votes"
AbhayChandramouli-2076 asked AbhayChandramouli-2076 commented

Azure AD B2C | can a user login to azure ad b2c using both mobile and email ?

Hi @amanpreetsingh-msft ,
I am using custom policies for sign in sign up flow. I want to know if it's possible to have a flow where the same user can login using the mobile number or email address ?
Like user ABC has email abc@email.com and phone number 99899
then the user can enter either of the above plus his password to login ?

Thanks

azure-ad-b2c
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

JamesHamil-MSFT avatar image
0 Votes"
JamesHamil-MSFT answered AbhayChandramouli-2076 commented

Hi @AbhayChandramouli-2076 , thanks for the question. Yes, you can do this! This is detailed in this GitHub sample.

197556-phone.png

Please let me know if you have any questions.

If this answer helped you please mark it as "Verified" so other users can reference it.

Thank you,
James



phone.png (302.0 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi James, Thanks for the answer,
but I am not looking for this, I want the user to enter phone/email as username and then the password. No need for OTP. What I want to say is primary username is abc@pol.com and password is abc@123 / also secondary username is phoneNumber 98989899 . So if the user enters either of them with password abc@123, he can login.


Thanks



@JamesHamil-MSFT

0 Votes 0 ·