Skip to content

Commit ceae92d

Browse files
committed
Fix SLO on POST-binding
1 parent 0edc3f5 commit ceae92d

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

docs/simplesamlphp-changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ See the upgrade notes for specific information about upgrading.
88
## Version 2.0.5
99

1010
* Never expose the cron-API if secret is not properly configured (#1831)
11+
* Fixed a bug where IdP-initiated SLO using the HTTP-POST binding wasn't properly dealt with
1112

1213
## Version 2.0.4
1314

modules/saml/src/Controller/SingleLogout.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,10 @@ public function singleLogout(Request $request): Response
8787
return $idp->doLogoutRedirect(
8888
$httpUtils->checkURLAllowed($request->query->get('ReturnTo'))
8989
);
90+
} elseif ($request->request->has('ReturnTo')) {
91+
return $idp->doLogoutRedirect(
92+
$httpUtils->checkURLAllowed($request->request->get('ReturnTo'))
93+
);
9094
}
9195

9296
try {

0 commit comments

Comments
 (0)