Hi @Eric Gagnon • Thank you for reaching out.
In addition to the current implementation that you have provided here, you may consider performing the Home Realm Discovery (HRD) using this custom policy sample and skip the Signup/Sign-in page where the Multi-tenant AAD button is added.
For this purpose, your application will collect users' email addresses, extract the domain suffix from the email address and then make an authentication call to the B2C policy along with domain_hint
parameter. The value of the domain_hint
parameter will be the domain suffix from the user's email address captured by the application. Based on the domain_hint
parameter, the user will be redirected to the IDP without requiring to click on the IDP button on the signup/sign-in page. If the policy doesn't contain the IDP as per the domain_hint parameter, the user can be directly sent to the technical profile for local account signup/sign-in which is configured as the default technical profile.
Feel free to tag me in your reply if you have any questions.
-----------------------------------------------------------------------------------------------------------
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.