Azure AD B2C - SAML auth with MFA

Denis Dal Molin 46 Reputation points
2022-10-27T09:54:31.913+00:00

Hello everyone,
I was able to correctly configure a custom policy for the registration and login flow with SAML on my B2C tenant.

I attach the files I modified for simple SAML login and authentication flow.

254707-b2c-1a-trustframeworkextensions.xml
254708-b2c-1a-saml2-signup-signin.xml

Now, however, I would also like to add the MFA option using this sample policy: https://github.com/azure-ad-b2c/samples/tree/master/policies/mfa-email-or-phone

I can't figure out how I could do it, I can't find much documentation.

Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
14,665 questions
Azure Active Directory External Identities
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Denis Dal Molin 46 Reputation points
    2022-10-28T21:51:39.333+00:00

    Resolved.

    If anyone is interested, I uploaded the TRUSTFRAMEWORKEXTENSIONS.xml file used and the relying party xml file.

    255208-b2c-1a-trustframeworkextensions.xml
    255209-b2c-1a-saml2-signup-signin-mfa-phonesms.xml

    1 person found this answer helpful.
    0 comments No comments

  2. Givary-MSFT 14,796 Reputation points Microsoft Employee
    2022-10-31T04:06:51.563+00:00

    @Denis Dal Molin Apologies for the delay in answering this post.

    I'm glad that you were able to resolve your issue and thank you for posting detailed steps which helped to resolve this issue, so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others" https://learn.microsoft.com/en-us/answers/support/accepted-answers#why-only-one-accepted-answer, I'll repost your solution in case you'd like to "Accept" the answer.

    Below answer provided by @Denis Dal Molin

    I uploaded the TRUSTFRAMEWORKEXTENSIONS.xml file used and the relying party xml file.
    255408-b2c-1a-trustframeworkextensions.xml
    255476-b2c-1a-saml2-signup-signin-mfa-phonesms.xml

    0 comments No comments