Azure B2C multitenant SAML app login

robcool 116 Reputation points
2021-10-26T23:01:52.563+00:00

How can I configure my SAML app in B2C to enable login from multitenant Azure AD using an extensionattribute ?
Can anyone please point to some sample code to achieve this ?

Microsoft Security | Microsoft Entra | Microsoft Entra External ID
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. AmanpreetSingh-MSFT 56,876 Reputation points Moderator
    2021-10-27T12:23:17.787+00:00

    Hi @robcool • Thank you for reaching out.

    Unfortunately, there is no sample readily available for this scenario. However, you can follow below steps to achieve your requirements:

    1. Follow the instructions mentioned in Register a SAML application in Azure AD B2C, for SAML application to integrate with B2C.
    2. Once done, update the TrustframeworkExtensions file as per the instructions provided here: Set up sign-in for multi-tenant Azure Active Directory using custom policies in Azure Active Directory B2C
    3. To collect extension attribute during sign-up/first sign-in of new users, follow the steps mentioned here: Add user attributes and customize user input in Azure Active Directory B2C

    Login from multitenant Azure AD using an extensionattribute is not possible as the authentication will be done by standard Azure AD tenant. You will have to either use UPN or Alternate login ID (if configured), in order to sign in.

    -----------------------------------------------------------------------------------------------------------

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.