Skip to content
This repository was archived by the owner on Jul 3, 2026. It is now read-only.
This repository was archived by the owner on Jul 3, 2026. It is now read-only.

SAML Response not matching "saml-schema-protocol-2.0.xsd" - Assertion rejected #42

Closed

Description

@yesvivek

When signing the entire SAML Response, one of the Service Provider has rejected the Assertion stating the incorrect ordering of Signature element and not compliant with "saml-schema-protocol-2.0.xsd".
According to them and xsd, signature should be always after the Issuer element in the SAML Response or Assertion. In samlp's SAML Response, the Signature element is present in the Response just after the Assertion element - sample response for reference.

Refer the example here and here (Check "SAML Response with Signed Message")

Is it possible to achieve the specified ordering? I have checked samlresponse.ejs but it doesnt seem to be enough to get there. Any help here is appreciated..

Activity

  1. mcastany commented on Mar 23, 2017

    @mcastany
    Contributor

    @yesvivek we should replace this line https://github.com/auth0/node-samlp/blob/master/lib/samlp.js#L52 with something like this:

    sig.computeSignature(cannonicalized, { prefix: options.signatureNamespacePrefix, location: { action: 'after', reference: "//*[local-name(.)='Issuer']" }});
    

    I'll send an update to the library with some tests later this week.

  2. yesvivek commented on Mar 23, 2017

    @yesvivek
    Author

    @mcastany That change is all needed, works good now. Thanks a lot!

  3. yesvivek commented on Jul 14, 2017

    @yesvivek
    Author

    Not sure whether this is fixed already or not. @mcastany could you please confirm.

  4. mcastany commented on Jul 18, 2017

    @mcastany
    Contributor

    @yesvivek no, sorry. I see that there are two PRs open for this. I have requested some changes + tests. I'll let you know when this is fixed

  5. mcastany commented on Jul 31, 2017

    @mcastany
    Contributor

    v3.3.2 published

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions