How can I create a custom Policy to login with username in Azure B2C. It's asking for an email address but I want to use only a local username.
How can I create a custom Policy to login with username in Azure B2C. It's asking for an email address but I want to use only a local username.
Hello @CarlosBarragan-5927 · Thank you for reaching out.
For username based signup and sign in journey in custom policy, please refer to the custom policy sample below:
https://github.com/azure-ad-b2c/samples/tree/master/policies/username-signup-or-signin/policy
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.
Have you tried this
Azure AD B2C can be use email OR localAccount for authentication. You need to set the "identity providers" to localAccounts: enter image description here

Note: in odrer to create local accounts you need to set "creationType": "LocalAccount" in the JSON to create local account users.
Best regards
8 people are following this question.