0

I want to add a new step on password reset that basically needs to display a user custom attribute like extension_question1, which was stored during sign-up, and another field to provide the answer. I also want to make an API call to validate the answer.

How can I do that?

J. Viégas
  • 135
  • 1
  • 11

1 Answers1

1

You can customize your reset password experience using Custom Policies.

Check out Configure password change using custom policies in Azure Active Directory B2C for detailed tutorial about how to do this.

You will have to add just another ClaimProvider for extra question you want to add.

Harshita Singh
  • 4,590
  • 1
  • 10
  • 13
  • Thanks for replying! It is clear when you need to add a new "field" to the user, but not sure how to display the extension_question1 stored during sign-up. Do you know how I can do this? – J. Viégas Apr 15 '21 at 11:56
  • Pls check out this: https://github.com/azure-ad-b2c/samples/tree/master/policies/password-reset-with-phone-number - you can use question instead of phone number. – Harshita Singh Apr 15 '21 at 13:42
  • 1
    Thanks for sharing this example! – J. Viégas Apr 20 '21 at 11:31