Skip to content

Commit

Permalink
Bump xml-encryption to 1.2.1 for modern algorithm support (#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
robinbijlani authored Feb 3, 2021
1 parent dcfcc47 commit 7c147a3
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
7 changes: 6 additions & 1 deletion lib/passport-wsfed-saml2/samlp.js
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,12 @@ Samlp.prototype = {
return done(new Error('Assertion is encrypted. Please set options.decryptionKey with your decryption private key.'));
}

return xmlenc.decrypt(encryptedData, { key: this.options.decryptionKey, autopadding: this.options.autopadding }, done);
return xmlenc.decrypt(encryptedData, {
key: this.options.decryptionKey,
autopadding: this.options.autopadding,
disallowDecryptionWithInsecureAlgorithm: false,
warnInsecureAlgorithm: false
}, done);
}
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"uid2": "0.0.x",
"valid-url": "^1.0.9",
"xml-crypto": "auth0/xml-crypto#v1.4.1-auth0.2",
"xml-encryption": "auth0/node-xml-encryption#v0.12.0",
"xml-encryption": "^1.2.1",
"xml2js": "0.1.x",
"xmldom": "auth0/xmldom#v0.1.19-auth0.2",
"xpath": "0.0.5",
Expand Down
Loading

0 comments on commit 7c147a3

Please sign in to comment.