Thank you for posting this in Microsoft Q&A.
I understand that you wish to utilize Microsoft Entra ID and Azure AD B2C at the same time for user logins.
Yes, it is possible to use Microsoft Entra ID and Azure AD B2C at the same time to authenticate both intranet and external users to your Ruby web application.
To do this, you can configure Azure AD B2C to use Microsoft Entra ID as an identity provider. This involves creating an identity provider in Azure AD B2C that points to your Microsoft Entra ID service instance, and then configuring a user flow to use that identity provider. When configuring your user flow, you will need to ensure that you are requesting the appropriate claims from Microsoft Entra ID to authenticate your users. Once you have configured Azure AD B2C to use Microsoft Entra ID as an identity provider, you can use Azure AD B2C to authenticate both intranet and external users to your Ruby web application.
Please go through the below documents to use Microsoft Entra ID and Azure AD B2C
sign-up and sign-in with an Azure AD B2C account
sign-in for a specific Microsoft Entra organization in Azure Active Directory B2C
Hope this helps. Do let us know if you any further queries.
Thanks,
Navya.
If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.