Skip to content

Latest commit

 

History

History
 
 

dynamic-sign-up-sign-in

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Dynamically sign in or sign up the user

This sample allows dynamically detecting whether a user can sign in or sign up. The user enters their email and selects Sign-in. If the account exists, the user is asked to verify their password. Otherwise, if the account does not exist, the user goes through a sign up flow.

Live demo

To test the policy, complete the following steps:

  1. Run the B2C_1A_Demo_SignUp_SignIn_Dynamic policy. In the sign-up or sign-in page provide an account that doesn't exists in the directory. Select Sign-in and Azure AD B2C will take you to the sign-up page (the email is read only).
  2. Run the B2C_1A_Demo_SignUp_SignIn_Dynamic policy again. In the sign-up or sign-in page provide the email address that you used in the previous step. Select Sign-in and Azure AD B2C will ask you to provide the password.
  3. Run the B2C_1A_Demo_SignUp_SignIn_Dynamic policy again. In the sign-up or sign-in page select the Sign-up now link. Azure Azure AD B2C will take you to the sign-up page where you provide and verify your email address.

Prerequisites

Notes

This sample policy is based on Social and LocalAccounts with MFA starter pack. All changes are marked with Sample: comment inside the policy XML files. Make the necessary changes in the Sample action required sections.