Azure B2C authenticate B2B user with Local Account username and password textboxes

Huy Nguyen 51 Reputation points

I have an azure domain, let's say and azure b2c

I would like the "Local Account" login username and password textboxes, of, to accept the credentials of and authenticate the user directly without seeing the login ui of

Is this possible? If so, how should I proceed?


Microsoft Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
2,752 questions
{count} votes

Accepted answer
  1. AmanpreetSingh-MSFT 56,486 Reputation points

    Hi @Huy Nguyen

    When you create/sign-up for a Local Account in B2C directory, a new account gets created which requires you to specify a new account password. Local accounts in your B2C directory cannot authenticate from tenant.

    What you can do is, add tenant as IDP to your B2C tenant as explained here:

    You can specify domain_hint=contoso (depending on what domain name you specify in the claims provider section) in the request so that users don't have to click on the Contoso IDP button and directly land on the tenant's authentication endpoint. You cannot bypass the UI.

    The only case where UI will not be shown to the user is, if SSO kicks in for based on cookies or primary refresh token (PRT), which I don't think can be considered as a solution.


    Please do not forget to "Accept the answer" wherever the information provided helps you. This will help others in the community as well.

    2 people found this answer helpful.

0 additional answers

Sort by: Most helpful