Skip to content

Commit

Permalink
Adding support for query params in identityProviderUrl (auth0#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
TigerC10 committed Apr 25, 2018
1 parent 470b23c commit 01c7138
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/passport-wsfed-saml2/wsfederation.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ WsFederation.prototype = {
query.wreply = this.wreply;
}

return this.identityProviderUrl + '?' + qs.encode(query);
var conjunction = (this.identityProviderUrl.indexOf('?') === -1) ? '?' : '&';

return this.identityProviderUrl + conjunction + qs.encode(query);
},

extractToken: function(req) {
Expand Down

0 comments on commit 01c7138

Please sign in to comment.