Cannot be redirected to my configured IdP using B2C Tenant
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.
- I have already created and switched to my B2C Tenant.
- Registered SP Application.
- Added custom Identity Provider configuring with openid-connect with my Keycloak IdP (It did not ask me federated domain name of IdP)
- 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?