This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Adding WantAssertionsSigned to NAM Generated Metadata

I'm trying to federate with an Azure B2C instance. In this case, Azure is the IdP and NAM is the SP, so I'm configuring the Azure IdP as a SAML 2.0 Identity Provider in NAM.

One issue I am seeing is that Azure won't sign the SAML Assertion unless the metadata contains WantAssertionSigned="true" in the SPSSODescriptor.  Per Microsoft doc here:

https://learn.microsoft.com/en-us/azure/active-directory-b2c/saml-service-provider-options?pivots=b2c-custom-policy#check-the-saml-assertion-signature

When your application expects the SAML assertion section to be signed, make sure the SAML service provider set the WantAssertionsSigned to true. If it's set to false or doesn't exist, the assertion section won't be signed.

I don't see any way to make NAM generate metadata with that setting.  Is there an option or other hack that will allow this?

This is NAM 5.0 SP4.

Thanks.

Matt

Labels:

Access Manager
Parents
  • 0  

    Hi!

    I never federated with Azure B2C as IdP but can you upload metadata as a text file, so you can manually fix whatever needed?

    Please keep in mind that manually modifying metadata will break metadata signature.

    So if Azure complains, try removing metadata signature element (Signature element just below EntityDescriptor). If Azure want metadata signed, you can resign it either with xmlsectool or some online utilities like https://www.samltool.com/sign_metadata.php

    Kind regards,

    Sebastijan

    Kind regards,

    Sebastijan

    If you found this post useful, give it a “Like” or click on "Verify Answer" under the "More" button

Reply
  • 0  

    Hi!

    I never federated with Azure B2C as IdP but can you upload metadata as a text file, so you can manually fix whatever needed?

    Please keep in mind that manually modifying metadata will break metadata signature.

    So if Azure complains, try removing metadata signature element (Signature element just below EntityDescriptor). If Azure want metadata signed, you can resign it either with xmlsectool or some online utilities like https://www.samltool.com/sign_metadata.php

    Kind regards,

    Sebastijan

    Kind regards,

    Sebastijan

    If you found this post useful, give it a “Like” or click on "Verify Answer" under the "More" button

Children
  • 0   in reply to   
    I never federated with Azure B2C as IdP but can you upload metadata as a text file, so you can manually fix whatever needed?

    That's precisely what we did and we got it working.  But the vendor I'm working with would rather have it directly refreshed from NAM's metadata.  They don't want to leave the manual fix, which I understand.  I do have a support case open as well.

    Matt