Skip to content

Latest commit

 

History

History

edit-mfa-phone-number

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Azure AD B2C: Edit MFA phone number

This sample policy demonstrates how to allow user to provide and validate new MFA phone number. After user change the MFA phone number, on the next login, user needs to provide the new phone number instead of the old one.

Live demo

To check out the user experience of the TOTP multi-factor authenticator, follow these steps:

  1. Sign-up or sign-in with MFA. Note, this step is not part of this sample.
  2. After you have an account that is registered with MFA, run the B2C_1A_Demo_ProfileEdit_PhoneNumber policy to edit the phone number you entered in the first step.
  3. After you changed the phone number for your account, sign-in with MFA. This time you will be asked to verify the new phone number. Note, this step is not part of this sample.

How it works

The solution is based on new B2C_1A_Demo_ProfileEdit_PhoneNumber relying party policy located in the ProfileEdit_PhoneNumber.xml file. The policy invokes EditMFAPhoneNumber user journey located in the TrustFrameworkExtensions_EditPhoneNumber.xml file which:

  1. Asks the user to sign-in with local account or social account
  2. Reads the user data from the Azure Active Directory
  3. Asks the user to validate the existing phone number
  4. Provides and validate new phone number
  5. Persists the new phone number to the directory

To change user's MFA phone number, call the B2C_1A_Demo_ProfileEdit_PhoneNumber relying party policy.

Community Help and Support

Use Stack Overflow to get support from the community. Ask your questions on Stack Overflow first and browse existing issues to see if someone has asked your question before. Make sure that your questions or comments are tagged with [azure-ad-b2c]. If you find a bug in the sample, please raise the issue on GitHub Issues. To provide product feedback, visit the Azure Active Directory B2C Feedback page.

Note: This sample policy is based on SocialAndLocalAccountsWithMfa starter pack. Changes are marked with Demo: comment inside the policy XML files. Make the necessary changes in the Demo action required sections.