| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -566,6 +566,9 @@ public function singleLogoutService(Request $request, string $sourceId): Respons | |||
| 566 | 566 | $lr->setRelayState($message->getRelayState()); | |
| 567 | 567 | $lr->setInResponseTo($message->getId()); | |
| 568 | 568 | ||
| 569 | + // If we set a key, we're sending a signed message | ||
| 570 | + $signedMessage = $lr->getSignatureKey() ? true : false; | ||
| 571 | + | ||
| 569 | 572 | if ($numLoggedOut < count($sessionIndexes)) { | |
| 570 | 573 | Logger::warning('Logged out of ' . $numLoggedOut . ' of ' . count($sessionIndexes) . ' sessions.'); | |
| 571 | 574 | } | |
@@ -578,17 +581,14 @@ public function singleLogoutService(Request $request, string $sourceId): Respons | |||
| 578 | 581 | ] | |
| 579 | 582 | ); | |
| 580 | 583 | ||
| 584 | + $dst = $dst['Location']; | ||
| 581 | 585 | if (!($binding instanceof SOAP)) { | |
| 582 | 586 | $binding = Binding::getBinding($dst['Binding']); | |
| 583 | 587 | if (isset($dst['ResponseLocation'])) { | |
| 584 | 588 | $dst = $dst['ResponseLocation']; | |
| 585 | - } else { | ||
| 586 | - $dst = $dst['Location']; | ||
| 587 | 589 | } | |
| 588 | - $binding->setDestination($dst); | ||
| 589 | - } else { | ||
| 590 | - $lr->setDestination($dst['Location']); | ||
| 591 | 590 | } | |
| 591 | + $lr->setDestination($dst); | ||
| 592 | 592 | ||
| 593 | 593 | $psrResponse = $binding->send($lr); | |
| 594 | 594 | $httpFoundationFactory = new HttpFoundationFactory(); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments