Comparing version 1.5.0 to 1.5.1
@@ -760,17 +760,21 @@ // Generated by CoffeeScript 1.7.1 | ||
return function(err, deflated) { | ||
var uri; | ||
var query, uri; | ||
if (err != null) { | ||
return cb(err); | ||
} | ||
uri = url.parse(identity_provider.sso_logout_url); | ||
uri = url.parse(identity_provider.sso_logout_url, true); | ||
query = null; | ||
if (options.sign_get_request) { | ||
uri.query = sign_request(deflated.toString('base64'), _this.private_key, options.relay_state); | ||
query = sign_request(deflated.toString('base64'), _this.private_key, options.relay_state); | ||
} else { | ||
uri.query = { | ||
query = { | ||
SAMLRequest: deflated.toString('base64') | ||
}; | ||
if (options.relay_state != null) { | ||
uri.query.RelayState = options.relay_state; | ||
query.RelayState = options.relay_state; | ||
} | ||
} | ||
uri.query = _.extend(query, uri.query); | ||
uri.search = null; | ||
uri.query = query; | ||
return cb(null, url.format(uri)); | ||
@@ -777,0 +781,0 @@ }; |
{ | ||
"name": "saml2-js", | ||
"version": "1.5.0", | ||
"version": "1.5.1", | ||
"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
135817
806