Share via

AzureAD B2C Authentication with SAML - Samples

juni dev 361 Reputation points
2022-09-12T22:39:58.55+00:00

Hi,

I used one of the B2C Samples for a SPA doing AuthZ on B2C with OIDC and using MSAL.JS SDK.
Now, the Client wants to use SAML and Not OIDC and seems MSAL does not work with SAML.

Any good samples of apps using B2C nd SAML?

Many thanks,
JD

Community Center | Not monitored
0 comments No comments

1 answer

Sort by: Most helpful
  1. Alfredo Revilla - Upwork Top Talent | IAM SWE SWA 27,546 Reputation points Moderator
    2022-09-13T21:07:11.37+00:00

    Hello @juni dev and thanks for reaching out. It's correct, MSAL does not support SAML authentication but OIDC and OAuth2. You can use libraries such as SAML2-js (samples included in the README) and follow the steps detailed in Register a SAML application in Azure AD B2C.

    Let us know if you need additional assistance. If the answer was helpful, please accept it and complete the quality survey so that others can find a solution.

    Was this answer helpful?

    0 comments No comments

Your answer

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