Skip to content

Commit

Permalink
Merge pull request #225 from fmartelli/master
Browse files Browse the repository at this point in the history
[#224] fix
  • Loading branch information
damikael authored Jul 15, 2022
2 parents bde4e9c + 3859cd5 commit ea82f76
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion spid-validator/server/lib/saml-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,16 @@ class IdP {
qs += this.getLogoutResponsePayload(SAMLResponse, relayState, null);
}

return url + "?" + qs;
const searchParams = new URLSearchParams(qs);

let slo = new URL(url);
let existingParams = new URLSearchParams(slo.search);
existingParams.forEach(function(value, key) {
searchParams.set(key, value);
});

slo.search = searchParams.toString();
return slo.toString();
}

getLogoutResponsePayload(SAMLResponse, relayState, sigAlg) {
Expand Down

0 comments on commit ea82f76

Please sign in to comment.