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)); };