I'm trying to integrate Azure AD B2C with Azure AD as an identity provider. My ideal solution for this flow would be to
- User visits my application and is not logged in, my application sends the user to the login-flow which immediately redirects the user to the Azure AD login page
- If this is the first time the user logs in to my application, a user within Azure AD B2C is automatically created with firstname, lastname and email which are sent from Azure AD.
In short, I want everything to be as seamless as possible for the end user. I did everything in this guide https://learn.microsoft.com/en-us/azure/active-directory-b2c/identity-provider-azure-ad-single-tenant?pivots=b2c-user-flow to set this up, but when using a regular signin-flow I get an error that says the user does not exist. If I use the signin/signup-flow I am redirected to the B2C signup-page (with the data from Azure AD prefilled).
Is it possible to register users automatically instead of having the manually signup the first time they signin?