Cannot be redirected to my configured IdP using B2C Tenant

Artyom Vancyan 1 Reputation point
2022-08-23T09:32:21.24+00:00

Before I created my B2C Tenant, I was using an ordinary tenant.

With ordinary tenant, I registered SP app, created a SAML IdP configuration, and sign in and sign up user flow.
When I opening my SP app and trying to login, it was opening the login.microsoftonline.com and I was logging in with an email of federated IdP domain name of SAML IdP configuration. Then, it redirected me to my IdP as a guest.

Now I want to achieve the same behavior with my B2C Tenant.

  1. I have already created and switched to my B2C Tenant.
  2. Registered SP Application.
  3. Added custom Identity Provider configuring with openid-connect with my Keycloak IdP (It did not ask me federated domain name of IdP)
  4. Created a user flow and selected my created custom IdP

Now when I open my SP application with B2C Tenant's configurations, I am getting "This username may be incorrect. Make sure you typed it correctly. Otherwise, contact your admin." error message when trying to login with emails of such domains as idp.dev.digitaltrust.net (federated domain name of my IdP) or digitaltrustnetworks.onmicrosoft.com (B2C Tenant's domain name).

P.S. I followed all steps of this document and tested the user flow getting expected result (It redirects me to my IdP). How can I achieve this with a guest user? What domain should I use or how can I strict use my user flow for authentication?

Microsoft Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
2,664 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,689 questions
{count} votes