Hi @Georgi Mihalev , yes, you can use the domain_hint
parameter to allow your customers to send their domain name to your B2C app. This will enable you to skip the first sign-in page and directly redirect the user to the correct identity provider based on the domain name.
To use the domain_hint
parameter, your customer can append the parameter domain_hint=<domain hint value>
to the end of the request URL when calling your B2C app for sign-in. For example, if the customer's domain name is contoso.com
, the URL would look like this: https://yourb2capp.com/signin?domain_hint=contoso.com
.
In your B2C custom policy, you can then use the domain_hint
value to redirect the user to the correct identity provider. To do this, you can configure the <Domain>contoso.com</Domain>
technical profile XML element with the domain name used in the domain hint. For example, <Domain>contoso.com</Domain>
.
Please let me know if you have any questions and I can help you further.
If this answer helps you please mark "Accept Answer" so other users can reference it.
Thank you,
James