You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
XML entities, when included in signature elements (value and/or certificate) fail signature check, passing the XML node to xml-crypto instead of providing a string fixes the issue.
So, the presumption here is that the downstream signature validation will cover this case and we shouldn't be normalizing the signature at all. Correct?
We should be normalizing the signature (and only the signature) we provide through loadSignature, all paths that lead to this call appears to provide a node that comes out of parseDomFromString, so it is already normalized. This way we can keep fullXml the way it is. I guess another way to do it if you wanted to keep a string would be to normalize both \r and XML entities, but since you already have a normalized node, that seems like unnecessary work.
Hey @cjbarth, any chance we can get these changes published? I am working on moving some projects from passport-saml to @node-saml/node-saml and this is currently the only problem we have found so far. I was able to locally verify these changes and they work for our integrations ;)
He doesn't need to, the semver range is perfectly appropriate.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fixes #200.
XML entities, when included in signature elements (value and/or certificate) fail signature check, passing the XML node to xml-crypto instead of providing a string fixes the issue.
Checklist: