-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Added Options object for signer.computeSignature #1066
Added Options object for signer.computeSignature #1066
Conversation
XML-crypto vers 1.4.0 broke the WSSecuriityCert functionality Added the optons needed to correctly add the headers
Updated the Reademe with options details for WSSecurityCert Reverted the Tests Locked XML-crypto to version ~1.2.0 Reverted the Package-lock.json file Reworked the signerOptions to be park of the WSS options.
@LorneCurrie please update your git config so we can properly track you in git history later on. also, please add a test |
I'm using version 0.28.0 from node-soap and I'm facing this error. When the fix will be released? |
@holmmikael when tests are added. if you'd like to copy this effort and add tests in your own pr feel free, otherwise you'll need to reach out to @LorneCurrie and ask him to add tests. |
Sorry, I have been caught up on some things. I'll update the tests this weekend |
Simplied the XML SignerOpetions to only include the attribute that is currently causing the issues Added tests Updated Readme.
Tests added |
Thank you! |
* Added Options object for signer.computeSignature XML-crypto vers 1.4.0 broke the WSSecuriityCert functionality Added the optons needed to correctly add the headers * Fixed a linting issues * Small changes Updated the Reademe with options details for WSSecurityCert Reverted the Tests Locked XML-crypto to version ~1.2.0 Reverted the Package-lock.json file Reworked the signerOptions to be park of the WSS options. * Added tests Simplied the XML SignerOpetions to only include the attribute that is currently causing the issues Added tests Updated Readme.
Locked the XML-Crypto to 1.2.0
updated the readme with details about options for WSSecurityCert function
Added the signer Options to the WSSecurityCerts OPtions to be used in xml-crypto. Helps with a breaking change in 1.4.0. Detail about change below.
XML-crypto 1.4.0, would add the
xmlns
xmlns:wsse=""
to the<wsse:SecurityTokenReference xmlns:wsse="">
when thesigner.computeSignature
function was called.This was different behaviour to the version (1.2.0) locked in the project.
When Node-Soap was imported into my project, the version of XML-crypto that was set using the hat
^
would pick the latest minor version release, which had different behaviour.Other option for the fix would be to lock the version fo xml-crypto to 1.2.0 minor range
Pull request: 1067 is another option that would fix this option and is less evasive.
XML before the change:
After the change