Comparing version 1.0.1 to 1.0.2
@@ -405,3 +405,3 @@ // Generated by CoffeeScript 1.7.1 | ||
parse_assertion_attributes = function(dom) { | ||
var assertion, assertion_attributes, attr, attribute, attribute_name, attribute_statement, _i, _j, _len, _len1, _ref, _ref1; | ||
var assertion, assertion_attributes, attr, attribute, attribute_name, attribute_statement, attribute_values, _i, _j, _len, _len1, _ref, _ref1; | ||
assertion = dom.getElementsByTagNameNS(XMLNS.SAML, 'Assertion'); | ||
@@ -432,4 +432,6 @@ if (assertion.length !== 1) { | ||
} | ||
assertion_attributes[attribute_name] = _(attribute.getElementsByTagNameNS(XMLNS.SAML, 'AttributeValue')).map(function(attribute_value) { | ||
return attribute_value.childNodes[0].data; | ||
attribute_values = attribute.getElementsByTagNameNS(XMLNS.SAML, 'AttributeValue'); | ||
assertion_attributes[attribute_name] = _(attribute_values).map(function(attribute_value) { | ||
var _ref2; | ||
return ((_ref2 = attribute_value.childNodes[0]) != null ? _ref2.data : void 0) || ''; | ||
}); | ||
@@ -436,0 +438,0 @@ } |
{ | ||
"name": "saml2-js", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "SAML 2.0 node helpers", | ||
@@ -5,0 +5,0 @@ "author": "Clever", |
@@ -237,2 +237,3 @@ # SAML2-js | ||
app.get("/metadata.xml", function(req, res) { | ||
res.type('application/xml'); | ||
res.send(sp.create_metadata()); | ||
@@ -239,0 +240,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
114302
26
704
283