diff --git a/lib/samlp.js b/lib/samlp.js index 3814408..f1f211d 100644 --- a/lib/samlp.js +++ b/lib/samlp.js @@ -48,7 +48,7 @@ function buildSamlResponse(options) { } }; - sig.computeSignature(cannonicalized, { prefix: options.signatureNamespacePrefix }); + sig.computeSignature(cannonicalized, { prefix: options.signatureNamespacePrefix, location: options.location }); SAMLResponse = sig.getSignedXml(); } @@ -142,6 +142,10 @@ module.exports.auth = function(options) { opts.postUrl = postUrl; getSamlResponse(opts, user, function (err, SAMLResponse) { + if (err) { + console.warn('Here is the error: ' + err) + console.warn('Here is the SAMLResponse: ' + SAMLResponse) + } if (err) return next(err); var response = new Buffer(SAMLResponse); diff --git a/package.json b/package.json index 0307be8..ab565b1 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "samlp", + "name": "ipmk-samlp", "version": "3.3.1", "description": "SAML Protocol server middleware", "main": "lib/index.js", @@ -10,7 +10,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/auth0/node-samlp.git" + "url": "https://github.com/iPipelineMK/node-samlp.git" }, "keywords": [ "saml", @@ -22,7 +22,7 @@ "ejs": "2.5.5", "flowstate": "^0.4.0", "querystring": "^0.2.0", - "saml": "^0.12.1", + "saml": "0.12.1", "thumbprint": "0.0.1", "xml-crypto": "^0.10.1", "xmldom": "https://github.com/auth0/xmldom/tarball/master",