From bd590bbb7f6f059590519e921f136ccd91fae5d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herbert=20Voj=C4=8D=C3=ADk?= Date: Tue, 10 Sep 2013 16:00:48 +0200 Subject: [PATCH] fixes redirect initiation for targets that already have ... ... some query string predefined Allow for passive IdP, for example, by adding ?IsPassive=true. --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index 1525b55..d7dd855 100644 --- a/index.js +++ b/index.js @@ -42,6 +42,7 @@ SAML2Strategy.prototype.initiateRedirect = function initiateRedirect(type, targe uri.query.Signature = dsig.signatures[uri.query.SigAlg].sign({privateKey: this.sp.privateKey}, toSign); } + uri.search = null; return res.redirect(url.format(uri)); }.bind(this)); };