Home
/
Blogs
/
Creating Azure B2C custom policy for local account sign in capabilities

Creating Azure B2C custom policy for local account sign in capabilities

August 15, 2024, Abdush Miah

Prefer to watch instead? Click below to watch the steps instead:

Prerequisites

An Azure B2C tenant

Step 1 - register an application

This application will act as your front end application.

Step 2 - Configure identity experience framework applications

2a) Create the signing key

2b) Create the encryption key

2c) Register the IdentityExperienceFramework application

2d) Register the ProxyIdentityExperienceFramework application

Step 3 - Upload custom policies

Microsoft provide sample custom policies for several scenarios, which can be found here. For this tutorial we will be using the 'LocalAccounts' provided sample files.

<TechnicalProfile Id="login-NonInteractive">.
As you upload the files, Azure adds the prefix B2C_1A_ to each.

Step 4 - Test the custom policy

References

https://github.com/Azure-Samples/active-directory-b2c-custom-policy-starterpack
https://learn.microsoft.com/en-us/azure/active-directory-b2c/tutorial-create-user-flows?pivots=b2c-custom-policy