-
Notifications
You must be signed in to change notification settings - Fork 26
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
Remove Signature element from the xml before verifying it #13
Comments
Is it? Have you tried it in production? And if so, can you send a PR? On Mar 31, 2016, at 1:32 AM, zccaliDev <[email protected]mailto:[email protected]> wrote: in the saml.js file you can see this code sig.loadSignature(signature.toString()); if the signature element was not removed from the assertion the digest value will be different. sig.loadSignature(signature.toString()); You are receiving this because you are subscribed to this thread. |
Yes, I tried. it's working 100%. |
👍 |
I think @zccaliDev may be referring to this part of the XML signature spec in 6.6.3 XPath Filtering
|
May it look that, but when I debug the process of checking the Signature it won't remove the signature element and try to validate the data and it cause an error |
in the saml.js file you can see this code
if the signature element was not removed from the assertion the digest value will be different.
so the correct code will be
The text was updated successfully, but these errors were encountered: