Skip to content

Commit 569a0d9

Browse files
committed
Merge pull request #21 from Den-dp/master
bump xml-crypto to 0.8.1 and fix minor changes in api
2 parents 2b620ec + 2742ab0 commit 569a0d9

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"ejs": "~0.8.3",
2121
"saml": "^0.9.0",
2222
"thumbprint": "0.0.1",
23-
"xml-crypto": "0.0.13",
23+
"xml-crypto": "0.8.1",
2424
"xmldom": "~0.1.15",
2525
"xpath": "0.0.5",
2626
"xtend": "~1.0.3"
@@ -32,7 +32,6 @@
3232
"request": "~2.14.0",
3333
"xmldom": "~0.1.13",
3434
"cheerio": "~0.10.7",
35-
"xml-crypto": "0.0.10",
3635
"xpath": "0.0.5"
3736
}
3837
}

test/xmlhelper.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ var xmlCrypto = require('xml-crypto'),
44
exports.verifySignature = function(assertion, cert) {
55
try {
66
var doc = new xmldom.DOMParser().parseFromString(assertion);
7-
var signature = xmlCrypto.xpath.SelectNodes(doc, "/*/*[local-name(.)='Signature' and namespace-uri(.)='http://www.w3.org/2000/09/xmldsig#']")[0];
7+
var signature = xmlCrypto.xpath(doc, "/*/*[local-name(.)='Signature' and namespace-uri(.)='http://www.w3.org/2000/09/xmldsig#']")[0];
88
var sig = new xmlCrypto.SignedXml(null, { idAttribute: 'AssertionID' });
99
sig.keyInfoProvider = {
1010
getKeyInfo: function (key) {

0 commit comments

Comments
 (0)