To Create Azure AD B2C App, please follow the below simple steps,
Prerequisites:
- You need login account for https://portal.azure.com/
- You need Directory to create Azure AD B2C Tenant
- You need Azure AD B2C Tenant under Directory Created
Steps to create Azure AD B2C App:
- Go to "App Registration" and Create "New Registration"
- Give some unique name
- Choose option for "Account with any identity provider...."
- Redirect URI can be Web & give your application URL (For ex: https://localhost:5000 and also add https://jwt.ms for testing)
- Grant consent enabled
- Set both Access Token & ID token
- Public client flow to No
- Add new client secret with some name and store the secret details for later
- Client "Add Permission", select Microsoft Graph
- Add Delegated permission, all available
- Add Application permission, Directory.read.all, Directory.readwrite.all, User.read.all, User.readwrite.all (include as required)
- Grand Admin Consent checkbox for every permissions added, make sure all set to true
Login pages:
Default Pages: (User Flows)
Customized Pages: (Identity Experience Framework)