Azure-Samples/active-directory-b2c-dotnetcore-webapp

How to pass domain_hint while calling B2C for login

yashwanth-yenugu opened this issue · 1 comments

Where can I pass domain_hint?

What is your scenario
Would you want to try to override the OnRedirectToIdenitityProvider event?

services.Configure(AzureADDefaults.OpenIdScheme, options =>
{
...
// Attempt to avoid displaying the select account dialog when signing out
options.Events.OnRedirectToIdentityProvider = async context =>
{
//Your logic here
context.ProtocolMessage.DomainHint = user.GetDomainHint();
await Task.FromResult(0);
};
}