Comparing version 2.1.0 to 3.0.0
@@ -353,6 +353,7 @@ // Generated by CoffeeScript 1.12.7 | ||
check_saml_signature = function(xml, certificate) { | ||
var doc, sig, signature, valid; | ||
check_saml_signature = function(_xml, certificate) { | ||
var doc, sig, signature, valid, xml; | ||
xml = _xml.replace(/\r\n?/g, '\n'); | ||
doc = (new xmldom.DOMParser()).parseFromString(xml); | ||
signature = xmlcrypto.xpath(doc, "./*[local-name(.)='Signature' and namespace-uri(.)='http://www.w3.org/2000/09/xmldsig#']"); | ||
signature = xmlcrypto.xpath(doc.documentElement, "./*[local-name(.)='Signature' and namespace-uri(.)='http://www.w3.org/2000/09/xmldsig#']"); | ||
if (signature.length !== 1) { | ||
@@ -367,3 +368,3 @@ return null; | ||
}; | ||
sig.loadSignature(signature[0].toString()); | ||
sig.loadSignature(signature[0]); | ||
valid = sig.checkSignature(xml); | ||
@@ -370,0 +371,0 @@ if (valid) { |
{ | ||
"name": "saml2-js", | ||
"version": "2.1.0", | ||
"version": "3.0.0", | ||
"description": "SAML 2.0 node helpers", | ||
@@ -37,3 +37,3 @@ "author": "Clever", | ||
"underscore": "^1.8.0", | ||
"xml-crypto": "^0.10.0", | ||
"xml-crypto": "^2.0.0", | ||
"xml-encryption": "^1.2.1", | ||
@@ -40,0 +40,0 @@ "xml2js": "^0.4.0", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
241497
49
932
+ Added@types/node@22.10.1(transitive)
+ Addedundici-types@6.20.0(transitive)
+ Addedxml-crypto@2.1.5(transitive)
- Removed@types/node@22.9.3(transitive)
- Removedundici-types@6.19.8(transitive)
- Removedxml-crypto@0.10.1(transitive)
- Removedxpath.js@1.1.0(transitive)
Updatedxml-crypto@^2.0.0