19declare(strict_types=1);
23use SimpleSAML\Utils\Auth;
24use SimpleSAML\Configuration;
26use SimpleSAML\Module as SimpleSamlModule;
32 public static function run(): void
35 if (preg_match(
'@^/saml/sp/saml2-logout.php/@',
$_SERVER[
'PATH_INFO'])) {
38 $DIC[
'ilAuthSession']->logout();
39 $DIC[
'ilAppEventHandler']->raise(
'components/ILIAS/Authentication',
'afterLogout', [
40 'username' =>
$DIC->user()->getLogin(),
43 SimpleSamlModule::process()->send();
49 $config = Configuration::getInstance();
50 if ($config->getOptionalBoolean(
'admin.protectmetadata',
false)) {
52 $admin->requireAdmin();
65 ->withHeader(
'Content-Type',
'application/xml')
69 $http->sendResponse();
Stream factory which enables the user to create streams without the knowledge of the concrete class.
static ofString(string $string)
Creates a new stream with an initial value.
static sendXMLString(string $xml_string)
static setClosingContext(int $a_context)
set closing context (for statistics)
const int SESSION_CLOSE_USER
Class ilCertificateSettingsCmiXapiFormRepository.