tushar dohroo
tushar dohroo

Reputation: 21

Customize User Experience in Azure AD B2C custom policy

I want to built a custom page where we ask the user for their email and then redirect them to the particular IDP page (we have logic built around this) using domain_hint, for example: domain_hint=facebook.com.

Upvotes: 0

Views: 370

Answers (1)

Jas Suri - MSFT
Jas Suri - MSFT

Reputation: 11315

Have a look at these samples:

Demonstrates how to implement a sign in journey, where the user is automatically directed to their federated identity provider based off of their email domain. And for users who arrive with an unknown domain, they are redirected to a default identity provider. https://github.com/azure-ad-b2c/samples/blob/master/policies/default-home-realm-discovery

Demonstrates how to create a home realm discovery page. On the sign-in page, the user provides their sign-in email address and clicks continue. B2C checks the domain portion of the sign-in email address. If the domain name is contoso.com the user is redirected to Contoso.com Azure AD to complete the sign-in. Otherwise the user continues the sign-in with username and password. In both cases (AAD B2C local account and AAD account), the user does not need to retype the user name. https://github.com/azure-ad-b2c/samples/blob/master/policies/home-realm-discovery-modern

Upvotes: 1

Related Questions