-
Notifications
You must be signed in to change notification settings - Fork 475
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
"invalid signature" when using xml-crypto > 1.4.0 #431
Comments
Possibly related bug report on that package. |
We also ran into this. I submitted a fix here: But the xml-crypto team thinks this update doesn't belong in xml-crypto. @bergie what are your thoughts about normalizing line-breaks before
|
@thenengah Please create a PR for this which includes a test case that illustrates the failure. You should hopefully be able to find a matching test, copy/paste and add some Carriage Returns to it. I looked up the XML spec for newlines. It is here: https://www.w3.org/TR/REC-xml/#sec-line-ends It says that the XML processor should normalize the newlines as you describe before parsing. I look up related references in So, it does seem to be correct according to the spec for us to normalize the newlines before handing off XML to |
Not sure why, but xml-crypto > 1.4.0 gives me an invalid signature.
Fix is to force xml-crypto to v1.4.0
But perhaps there's something programmatic that needs to change in how passport-saml is using it?
The text was updated successfully, but these errors were encountered: