Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion lib/samlp.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down Expand Up @@ -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);
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "samlp",
"name": "ipmk-samlp",
"version": "3.3.1",
"description": "SAML Protocol server middleware",
"main": "lib/index.js",
Expand All @@ -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",
Expand All @@ -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",
Expand Down