Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
yesvivek opened this issue Mar 23, 2017 · 5 comments

Comments

@yesvivek
Copy link

yesvivek commented Mar 23, 2017

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..

@mcastany
Copy link
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.

@yesvivek
Copy link
Author

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

@yesvivek
Copy link
Author

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

@mcastany
Copy link
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

@mcastany
Copy link
Contributor

v3.3.2 published

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants