Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I implement a single login interface for multiple providers in Azure AD B2C

Tags:

azure-ad-b2c

I have configured multiple external providers for Azure AD B2C. Right now, the user is forced to pick the provider that they want to authenticate with. How do I configure the system so that the user can type an email address, and the system can automatically forward the user to the proper IDP based on their email address. Similar to how the common authentication endpoint works for different azure domains in Azure AD work and student accounts.

like image 499
Juxhin Avatar asked Nov 02 '17 17:11

Juxhin


People also ask

How many Azure B2C tenants can you have?

Before your applications can interact with Azure Active Directory B2C (Azure AD B2C), they must be registered in a tenant that you manage. You can create up to 20 tenants per subscription.

How do I give access to Azure B2C?

Under Azure services, select Azure AD B2C. Or in the Azure portal, search for and select Azure AD B2C. In the left menu, under Manage, select Users. Select + New user.


1 Answers

Azure AD B2C does not provide any automatic IDP discovery functionality. You can request this feature in the Azure AD B2C feedback forum

You can implement this yourself by leveraging the domain_hint feature however this would require you keep your own table where you keep track of the username-to-IDP relationship. You'd then build your own page where the user can type his/her username, and based on this mapping table then redirect to B2C with the corresponding domain hint (for example, domain_hint=facebook.com)

like image 133
Saca Avatar answered Sep 28 '22 02:09

Saca