Setup Guide for Azure B2C App

Step 1: Setup Azure B2C as OAuth Provider

  • Navigate to the plugin configuration page, click the "Add New Provider" button (located either in the middle or top-right corner), select Azure B2C as the application, and copy the callback URL from the plugin and keep it handy, as you'll need it to configure Azure B2C as the OAuth provider.
  • OAuth / OPenID Single Sign On (SSO) using ADFS, ADFS Management
  • To perform SSO with Azure B2C as Provider, your application must be https enabled.
  • Sign in to Azure portal.
  • Go to Home and in the Azure services, select Azure AD B2C.
  • OAuth/OpenID/OIDC Single Sign On (SSO), Azure B2C SSO App-Registration
  • Please make sure you are in the Azure AD B2C directory with an active subscription and if not, you can switch to the correct directory.
  • OAuth/OpenID/OIDC Single Sign On (SSO), Azure B2C SSO registration
  • In the Essentials tab, you will find the Azure B2C domain name, keep it handy, you will need it later for configuring the Azure B2C tenant name under plugin.
  • OAuth/OpenID/OIDC Single Sign On (SSO), Azure B2C SSO Overview
  • Now, click on App registrations and then click on the New registration option to create a new Azure b2c application.
  • OAuth/OpenID/OIDC Single Sign On (SSO), Azure B2C SSO secret-Key
  • Configure the following options to create a new application.
    1. Enter a name for your application under the Name text field.
    2. In supported account types, select 3rd option ‘Accounts in any organizational directory (Any Azure AD directory - Multitenant) and personal Microsoft accounts (e.g. Skype, Xbox)’.
    3. In the Redirect URI section, select the Web application and enter the Callback URL from the plugin and save it under the Redirect URL textbox.
    4. Click on the Register button to create your application.
    5. OAuth/OpenID/OIDC Single Sign On (SSO), Azure B2C SSO secret-Key
  • After successful application creation, you will be redirected to the newly created application’s overview page. If not, you can go to the app registrations and search the name of your application and you will find your application in the list.
  • OAuth/OpenID/OIDC Single Sign On (SSO), Azure B2C SSO secret-Key
  • Copy your Application ID and keep it handy.
  • OAuth/OpenID/OIDC Single Sign On (SSO), Azure B2C SSO secret-Key
  • Now, click on Certificates and secrets and then click on New Client Secret to generate a Client Secret. Enter a description and click on the Add button.
  • OAuth/OpenID/OIDC Single Sign On (SSO), Azure B2C SSO secret-Key
  • Copy the secret value from certificates & secrets page and keep it handy.
  • OAuth/OpenID/OIDC Single Sign On (SSO), Azure B2C SSO secret-Key

Add Users in your b2c application

  • In home page, go to the Users tab in the left corner.
  • OAuth/OpenID/OIDC Single Sign On (SSO), Azure B2C SSO secret-Key
  • Click on New user in the users page. Then click on Create new user option.
  • OAuth/OpenID/OIDC Single Sign On (SSO), Azure B2C SSO secret-Key
  • Select Create Azure AD B2C user. Then, scroll down and click on Email from sign in method and set your password and click create to save the user details to perform test connection.
  • OAuth/OpenID/OIDC Single Sign On (SSO), Azure B2C SSO secret-Key