ILIAS  trunk Revision v11.0_alpha-1749-g1a06bdef097
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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...
 

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.

References $DIC, and ilAuthUtils\AUTH_SAML.

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  $DIC->ctrl()->redirectToURL('saml.php?action=logout&logout_url=' . urlencode(ILIAS_HTTP_PATH . '/login.php'));
32  }
33  }
34  }
global $DIC
Definition: shib_login.php:22

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