ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilSamlAppEventListener Class Reference
+ Inheritance diagram for ilSamlAppEventListener:
+ Collaboration diagram for ilSamlAppEventListener:

Static Public Member Functions

static handleEvent (string $a_component, string $a_event, array $a_parameter)
 Handle an event in a listener. More...
 
static handleEvent (string $a_component, string $a_event, array $a_parameter)
 Handle an event in a listener. More...
 

Detailed Description

Definition at line 21 of file class.ilSamlAppEventListener.php.

Member Function Documentation

◆ handleEvent()

static ilSamlAppEventListener::handleEvent ( string  $a_component,
string  $a_event,
array  $a_parameter 
)
static

Handle an event in a listener.

Parameters
string$a_componentcomponent, e.g. "components/ILIAS/Forum" or "components/ILIAS/User"
string$a_eventevent e.g. "createUser", "updateUser", "deleteUser", ...
array<string,mixed>$a_parameter parameter array (assoc), array("name" => ..., "phone_office" => ...)

Implements ilAppEventListener.

Definition at line 23 of file class.ilSamlAppEventListener.php.

23 : void
24 {
25 global $DIC;
26
27 if ($a_component === 'components/ILIAS/Authentication' && $a_event === 'afterLogout' &&
28 isset($a_parameter['is_explicit_logout']) && $a_parameter['is_explicit_logout'] === true &&
29 isset($a_parameter['used_external_auth_mode']) && $a_parameter['used_external_auth_mode']) {
30 if ((int) $a_parameter['used_external_auth_mode'] === ilAuthUtils::AUTH_SAML) {
31 $url = $a_parameter['logout_target'] ?? ILIAS_HTTP_PATH . '/login.php';
32 $DIC->ctrl()->redirectToURL('saml.php?action=logout&logout_url=' . urlencode($url));
33 }
34 }
35 }
const int AUTH_SAML
global $DIC
Definition: shib_login.php:26
$url
Definition: shib_logout.php:68

References $DIC, $url, and ilAuthUtils\AUTH_SAML.


The documentation for this class was generated from the following file: