Comparing version 1.8.0 to 1.8.1
@@ -704,10 +704,8 @@ // Generated by CoffeeScript 1.7.1 | ||
} | ||
uri = url.parse(identity_provider.sso_login_url); | ||
uri = url.parse(identity_provider.sso_login_url, true); | ||
delete uri.search; | ||
if (options.sign_get_request) { | ||
uri.query = sign_request(deflated.toString('base64'), _this.private_key, options.relay_state); | ||
_(uri.query).extend(sign_request(deflated.toString('base64'), _this.private_key, options.relay_state)); | ||
} else { | ||
uri.query = { | ||
SAMLRequest: deflated.toString('base64') | ||
}; | ||
uri.query.SAMLRequest = deflated.toString('base64'); | ||
if (options.relay_state != null) { | ||
@@ -743,3 +741,3 @@ uri.query.RelayState = options.relay_state; | ||
ServiceProvider.prototype._assert = function(identity_provider, options, cb) { | ||
var decrypted_assertion, response, saml_response, _ref, _ref1; | ||
var response, saml_response, _ref, _ref1; | ||
if (!((((_ref = options.request_body) != null ? _ref.SAMLResponse : void 0) != null) || (((_ref1 = options.request_body) != null ? _ref1.SAMLRequest : void 0) != null))) { | ||
@@ -749,3 +747,2 @@ return setImmediate(cb, new Error("Request body does not contain SAMLResponse or SAMLRequest.")); | ||
saml_response = null; | ||
decrypted_assertion = null; | ||
response = {}; | ||
@@ -752,0 +749,0 @@ return async.waterfall([ |
{ | ||
"name": "saml2-js", | ||
"version": "1.8.0", | ||
"version": "1.8.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
145509
854