Azure AD B2C Saml Assertions Not Signed

Christopher Norris 6 Reputation points
2023-02-14T20:00:36.7033333+00:00

Hello,

We are trying to integrate into an application that only supports SAML IDP-initiated authentication. SP is not supported.

However, when we try to authenticate, we are getting an error saying that the assertion is not signed.

We have tried setting the metadata value: WantsSignedAssertions to true, but when we view the SAML response, it does not show a signature element within the Assertion Element.

Any help would be greatly appreciated.

Microsoft Security | Microsoft Entra | Microsoft Entra External ID
Microsoft Security | Microsoft Entra | Other
{count} vote

2 answers

Sort by: Most helpful
  1. Akshay-MSFT 17,956 Reputation points Microsoft Employee Moderator
    2023-02-28T11:00:08.3466667+00:00

    @Christopher Norris ,

    Kindly validate the value for ResponsesSigned attribute. If the value is set to false, the identity provider shouldn’t sign the SAML response, but even if it does, Azure AD B2C won’t validate the signature. If you disable the SAML response validation, you also may want to disable the assertion signature validation

    Please do let me know if you have any queries in the comments section.

    Thanks

    Akshay Kaushik

    Please "Accept the answer" (Yes/No), and share your feedback if the suggestion works as per your business need. This will help us and others in the community as well.


  2. Akshay-MSFT 17,956 Reputation points Microsoft Employee Moderator
    2023-03-01T06:41:48.88+00:00

    @Christopher Norris ,

    Thanks for your response. This attribute is not required but has to be added in metadata. For example:

    User's image

    Possible values are true/false as per Define a SAML identity provider technical profile :

    User's image

    For a deep-dive kindly refer to Azure AD B2C Custom Policies - Deep Dive

    Thanks,

    Akshay Kaushik

    Please "Accept the answer" (Yes/No), and share your feedback if the suggestion works as per your business need. This will help us and others in the community as well.

    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.