The AD B2C Sign-up requires users to verify their email first before they can create their accounts. The default Sign-up page on AD B2C clubs together the email verification controls, followed by user's First Name, Last Name and other fields. This may not be always desirable since the users cannot interact with these fields without verifying their email anyway. Ideal user experience would be to split the registration process into two separate screens, where the users only see the email verification related controls first, and not the entire set of Registration controls. When they complete the email verification, they should be taken to the next screen which asks for more user attributes (first-name, last-name, dob etc.).
To check out the user experience of this policy, follow these steps:
- Run the B2C_1A_Demo_SignUp_SignIn_SplitEmailVerificationAndSignUp policy.
- On the sign-up or sign-in page, select Sign-up now.
- Provide and verify your email address, then select Continue.
- To complete the sign-up process, fill out the sign-up form and select Continue.
-
You can automate the pre requisites by visiting the setup tool if you already have an Azure AD B2C tenant. Some policies can be deployed directly through this app via the Experimental menu.
-
You will require to create an Azure AD B2C directory.
-
To use the sample policies in this repo, follow the instructions here to setup your AAD B2C environment for Custom Policies.
This policy splits the Sign up process into 2 steps:
- First step performs Email Verification only, skipping all other default fields related to users registration.
- Second step (if email verification was successful) takes the users to a new screen where they can actually create their accounts.
This sample policy is based on LocalAccounts starter pack. All changes are marked with Sample: comment inside the policy XML files. Make the necessary changes in the Sample action required sections.