59
Views
1
Comments
Testing Azure AD and Azure AD B2C authentication  using IDP.

I've created azure AD authentication and azure AD B2C authentication using IDP (I've created one application for azure AD and one for Azure AD B2C in azure portal and two SAML apps in IDP for azure ad and azure AD B2C  -- configuration was done by following few documentations).

I want to implement a login page  with three buttons, one for local authorization, one for azure AD and one for Azure AD B2C. How am I going to implement this?

Entity Id was same for Azure AD and Azure AD B2C .  How the azure portal is going to know whether its Azure AD or Azure AD B2C authentication?

For now its working like -- if we open the IDP reactive Demo page it is asking for microsoft login after authentication is done it is allowing us to login.


2023-05-30 10-05-13
Lourenço Matalonga

Hi @OMMI PAVANI KALYANI ,

To set up a login interface that offers a choice between local sign-in and two Azure-powered options, follow these straightforward steps:

1-Craft a login page featuring a trio of buttons, each representing one of the sign-in methods.

2-Utilize the IdP framework to forge two distinct SAML integrations - one catering to Azure AD and the other to Azure AD B2C.

3-Link each button to a specific action:

  • The local login button triggers the standard authentication procedure.
  • The Azure AD button activates a redirect to Azure AD via the IdP_RedirectToIdentityProvider action, leveraging the unique identifier for Azure AD.
  • The Azure AD B2C button prompts a similar redirect, but uses the identifier exclusive to Azure AD B2C.

4-Configure individual Reply URLs for Azure AD and Azure AD B2C within the IdP settings, ensuring a clear distinction in response handling.

With this setup, your users can effortlessly choose their preferred sign-in method, and post-authentication, Azure's protocol will seamlessly guide them back to the appropriate landing page as determined by your IdP setup. I think you got the point but let me know if you need me to go more into detail. 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.