Comparing version 1.5.1 to 1.6.0
@@ -143,7 +143,9 @@ // Generated by CoffeeScript 1.7.1 | ||
create_logout_request = function(issuer, name_id, session_index, destination) { | ||
return xmlbuilder.create({ | ||
var id, xml; | ||
id = '_' + crypto.randomBytes(21).toString('hex'); | ||
xml = xmlbuilder.create({ | ||
'samlp:LogoutRequest': { | ||
'@xmlns:samlp': XMLNS.SAMLP, | ||
'@xmlns:saml': XMLNS.SAML, | ||
'@ID': '_' + crypto.randomBytes(21).toString('hex'), | ||
'@ID': id, | ||
'@Version': '2.0', | ||
@@ -157,2 +159,6 @@ '@IssueInstant': (new Date()).toISOString(), | ||
}).end(); | ||
return { | ||
id: id, | ||
xml: xml | ||
}; | ||
}; | ||
@@ -751,3 +757,3 @@ | ||
ServiceProvider.prototype.create_logout_request_url = function(identity_provider, options, cb) { | ||
var xml; | ||
var id, xml, _ref; | ||
if (_.isString(identity_provider)) { | ||
@@ -760,3 +766,3 @@ identity_provider = { | ||
options = set_option_defaults(options, identity_provider.shared_options, this.shared_options); | ||
xml = create_logout_request(this.entity_id, options.name_id, options.session_index, identity_provider.sso_logout_url); | ||
_ref = create_logout_request(this.entity_id, options.name_id, options.session_index, identity_provider.sso_logout_url), id = _ref.id, xml = _ref.xml; | ||
return zlib.deflateRaw(xml, (function(_this) { | ||
@@ -783,3 +789,3 @@ return function(err, deflated) { | ||
uri.query = query; | ||
return cb(null, url.format(uri)); | ||
return cb(null, url.format(uri), id); | ||
}; | ||
@@ -786,0 +792,0 @@ })(this)); |
{ | ||
"name": "saml2-js", | ||
"version": "1.5.1", | ||
"version": "1.6.0", | ||
"description": "SAML 2.0 node helpers", | ||
@@ -5,0 +5,0 @@ "author": "Clever", |
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
136127
812