Registering CodeB Authenticator as Identity Provider in Azure Active Directory B2C

To register CodeB Authenticator as Identity Provider (IdP) using the CodeB Identity Broker with Microsoft Azure Active Directory B2C (AD B2C), follow these steps:

1. Go to the Azure Portal and navigate to “Azure AD B2C” -> “Identity providers”.

2. Click on “New OpenID Connect provider”.

3. In the “Configure custom IDP” window that opens on the right side:

  • Provide a unique name for your new provider. Note that this name cannot be changed later.
  • Enter the Metadata URL of your CodeB Identity Broker. Alternatively, you can use our public URL: https://auth.codeb.io/.well-known/openid-configuration (Note: The metadata URL cannot be changed later).
  • Assign a Client ID that is easily understandable for the user, as it will be included in the pop-up message of the CodeB Authenticator App.
  • Use “openid b2c serversig” as the “Scope”.
  • Leave the “Response type” and “Response mode” as default.

4. Configure the claims mapping, with the most important mapping being the “User ID”. Set the value to “sub”. For other mappings:

  • “Display name”: Set the value to “name”.
  • “Given name”: Set the value to “given_name”.
  • “Surname”: Set the value to “family_name”.
  • “Email”: Set the value to “email_address”.

5. That’s it! Your new Identity Provider is now ready to be used within your Azure App.

Please note that these instructions are specific to integrating the CodeB Identity Broker as an Identity Provider in Azure AD B2C. Make sure to consult the CodeB Identity Broker documentation for any specific requirements or updates related to the integration process.

Sample Workflows

Please find below some sample test workflows in Microsoft Azure. Once these workflows are successful, the resulting claims will be shown on https://jwt.ms.

Please note that you need to sign up before you can proceed with the signing process.

When you reach the Azure B2C Windows, please select either “Aloaha Mobile Auth” or “CodeB Mobile Auth” as the preferred option.

Signup:

https://codebauth.b2clogin.com/codebauth.onmicrosoft.com/oauth2/v2.0/authorize?p=B2C_1_signup&client_id=8f3f4060-45db-47b1-bfbd-5e0fa62b7c10&nonce=defaultNonce&redirect_uri=https%3A%2F%2Fjwt.ms&scope=openid&response_type=id_token&prompt=login

Signin:

https://codebauth.b2clogin.com/codebauth.onmicrosoft.com/oauth2/v2.0/authorize?p=B2C_1_signin&client_id=8f3f4060-45db-47b1-bfbd-5e0fa62b7c10&nonce=defaultNonce&redirect_uri=https%3A%2F%2Fjwt.ms&scope=openid&response_type=id_token&prompt=login

Signup and Login:

https://codebauth.b2clogin.com/codebauth.onmicrosoft.com/oauth2/v2.0/authorize?p=B2C_1_signupandin&client_id=8f3f4060-45db-47b1-bfbd-5e0fa62b7c10&nonce=defaultNonce&redirect_uri=https%3A%2F%2Fjwt.ms&scope=openid&response_type=id_token&prompt=login

Edit Profile:

https://codebauth.b2clogin.com/codebauth.onmicrosoft.com/oauth2/v2.0/authorize?p=B2C_1_edit&client_id=8f3f4060-45db-47b1-bfbd-5e0fa62b7c10&nonce=defaultNonce&redirect_uri=https%3A%2F%2Fjwt.ms&scope=openid&response_type=id_token&prompt=login