Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
As mentioned here (and now also here), there are a bunch of issues with the
shib_logout.phpSSO/global logout handling.The initial HTTP 500 error was already fixed in 9.x, but not applied to 10.
This PR now also fixes all other outstanding bugs/issues that prevented shibboleth SSO logout to work here.
Note that this was tested with our own ILIAS 9 instance, but since no other changes apart from directory structure have happened between 9 and 10 this should also work.
Commits have been split into the issues they fix:
$DIC->http()is only available after ILIAS was initialized$HTTP_RAW_POST_DATAhas been deprecated since PHP 5.5 and prevented this IF statement from ever being triggered, but is vital for SSO via shibboleth back channel to workshibboleth_session_id$_SESSION information that will be stored byilSessionas data column into theusr_sessiontable. This information is required byshib_logout.phpto find the correct session to destroy upon sso logout.shib_logout.phptreated the data field fetched from theusr_sessiontable as an array of arrays, but it just contains the key/value content of previous$_SESSIONvariable, no for loop required. This also does a small cosmetic change to some variable names.EDIT: Fixed include path for ILIAS10.