AzureAD B2C Authentication with SAML - Samples

juni dev 336 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

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
40,233 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. 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.

    0 comments No comments

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.