Khanh Tran
Khanh Tran

Reputation: 35

How to send verification code via SMS. But prevent users enter phone numbers in ADB2C

I using Microsoft ADB2C for authentication. And turn on MFA via SMS. I have a problem with the step that confirms the code.

confirm code

In the image above. The step confirms code always needs the user to input the phone number. So, How can I modify this step like this?

confirm code 2

This step runs when I set up the Authentication method of the user by manual. But I need automation when users sign up.

Upvotes: 0

Views: 432

Answers (1)

Jas Suri - MSFT
Jas Suri - MSFT

Reputation: 11315

Make sure you read the attribute where the phone number is stored before calling the MFA orchestration step. The phone number entry only appears if the phone number claim is null.

You will see in the AAD B2C SocialLocalAndMFA starter pack we read the strongAuthenticationPhoneNumber using AAD-UserReasUsingObjectId technical profile prior to the phonefactor mfa step.

You need to read the attribute where the phone number is written to at sign up.

Upvotes: 1

Related Questions