# Microsoft Azure AD B2C Configuration

This session shows how to register a web application and configure a Sign up and sign in user flow on Microsoft portal. When walking through this tutorial, we need to obtain the following values that are needed for later configuration in Datawiza Cloud Management Console (DCMC):

  • B2C Domain
  • Tenant ID
  • User Flow Name
  • Application (client) ID
  • Client Secret

# Prerequisites

We assume that you have already created an Azure AD B2C resource and an Azure AD B2C tenant. Follow Tutorial: Create an Azure Active Directory B2C tenant for more details.

# Register an Application

  1. Select Azure AD B2C in portal home page: Azure AD B2C

  2. Select App registrations and click New registration: Azure AD B2C app Note that the datawizab2ctest.onmicrosoft.com is the B2C Domain we needed.

  3. Input the Name and Redirect URI, e.g., http://localhost:9772/authorization-code/callback.
    Leave the rest of the fields as their default values, and then click Register: Azure AD B2C app

  4. Save the Application(client) ID and Tenant ID: Azure AD B2C app

  5. Add and save the new client secret: Azure AD B2C app

# Configure a User Flow

  1. Select User flows and click New user flow: Azure AD B2C user flow

  2. Select Sign up and sign in as user flow type, Recommended as Version, click Create: Azure AD B2C user flow

  3. Input the Name, select Email signup as Identity providers and select the User attributes and claims, click Create.
    The User Flow Name we needed is B2C_1_docExample in this example.
    For testing purposes, we select all attibutes and claims about email, first name and last name: Azure AD B2C user flow

  4. Select the user flow we created, change the Issuer(iss) claim in Properties, then click Save: Azure AD B2C user flow

# Summary

We have shown how to register a web application on Azure AD B2C and configure a Sign up and sign in user flow. Make sure to save the following values for configuration within the Datawiza Cloud Management Console.

  • B2C Domain
  • Tenant ID
  • User Flow Name
  • Application (client) ID
  • Client Secret

# References

Tutorial: Create an Azure Active Directory B2C tenant
Tutorial: Register a web application in Azure Active Directory B2C Tutorial: Create user flows in Azure Active Directory B2C