Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

First follow this guide to make your tenant ready to accept custom policies: https://docs.microsoft.com/en-us/azure/active-directory-b2c/tutorial-create-user-flows?pivots=b2c-custom-policy. The most essential step here is to clone the starter pack:

Code Block
git clone https://github.com/Azure-Samples/active-directory-b2c-custom-policy-starterpack

In all of the files in the SocialAndLocalAccounts directory, replace the string yourtenant with the name of your Azure AD B2C tenant, so for our example, we hit a find-and-replace with yourtenant to kantegassob2c.

https://learn.microsoft.com/en-us/azure/active-directory-b2c/tutorial-create-user-flows?pivots=b2c-custom-policy

By default the email parameter is not added as claim to user response in Azure AD B2C.

...

Under Identity Experience Framework, click the “Upload custom policy” button, and choose the SignUpOrSigning policy configured in the prevous steps.

...

You might encounter issues uploading the custom policy. If so, this automated tool helps you deploy the starterpack: https://b2ciefsetupapp.azurewebsites.net

Read more about custom policies in Microsoft’s guide:

...