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

Huy Nguyen 51 Reputation points
2020-06-05T16:02:46.54+00:00

I have an azure domain, let's say contoso.com and azure b2c contosob2c.onmicrosoft.com

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

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

Thanks,
Huy

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
    2020-06-06T08:25:30.823+00:00

    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 contoso.com tenant.

    What you can do is, add contoso.com tenant as IDP to your B2C tenant as explained here: https://learn.microsoft.com/en-us/azure/active-directory-b2c/identity-provider-azure-ad-single-tenant-custom

    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 Contoso.com tenant's authentication endpoint. You cannot bypass the contoso.com UI.

    The only case where contoso.com UI will not be shown to the user is, if SSO kicks in for contoso.com 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