ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Static Public Member Functions | |
static | addSession ($authId, $nameId, $sessionIndex, $expire) |
Register a new session in the datastore. More... | |
Static Private Member Functions | |
static | createLogoutTable (\SimpleSAML\Store\SQL $store) |
Create logout table in SQL, if it is missing. More... | |
static | cleanLogoutStore (\SimpleSAML\Store\SQL $store) |
Clean the logout table of expired entries. More... | |
static | addSessionSQL (\SimpleSAML\Store\SQL $store, $authId, $nameId, $sessionIndex, $expire, $sessionId) |
Register a session in the SQL datastore. More... | |
static | getSessionsSQL (\SimpleSAML\Store\SQL $store, $authId, $nameId) |
Retrieve sessions from the SQL datastore. More... | |
static | getSessionsStore (\SimpleSAML\Store $store, $authId, $nameId, array $sessionIndexes) |
Retrieve all session IDs from a key-value store. More... | |
Definition at line 8 of file LogoutStore.php.
|
static |
Register a new session in the datastore.
Please observe the change of the signature in this method. Previously, the second parameter ($nameId) was forced to be an array. However, it has no type restriction now, and the documentation states it must be a object. Currently, this function still accepts an array passed as $nameId, and will silently convert it to a object. This is done to keep backwards-compatibility, though will no longer be possible in the future as the $nameId parameter will be required to be an object.
string | $authId | The authsource ID. |
\SAML2\XML\saml\NameID | $nameId | The NameID of the user. |
string | null | $sessionIndex | The SessionIndex of the user. |
Definition at line 189 of file LogoutStore.php.
References $expire, $nameId, $session, $sessionIndex, $store, SAML2\XML\saml\NameIDType\fromArray(), SimpleSAML\Utils\Random\generateID(), SimpleSAML\Store\getInstance(), SimpleSAML_Session\getSession(), SimpleSAML_Session\getSessionFromRequest(), and SimpleSAML\Logger\info().
|
staticprivate |
Register a session in the SQL datastore.
\SimpleSAML\Store\SQL | $store | The datastore. |
string | $authId | The authsource ID. |
string | $nameId | The hash of the users NameID. |
string | $sessionIndex | The SessionIndex of the user. |
Definition at line 87 of file LogoutStore.php.
References $data, $expire, $nameId, and $sessionIndex.
|
staticprivate |
Clean the logout table of expired entries.
\SimpleSAML\Store\SQL | $store | The datastore. |
Definition at line 67 of file LogoutStore.php.
References PHPMailer\PHPMailer\$params, $query, and SimpleSAML\Logger\debug().
|
staticprivate |
Create logout table in SQL, if it is missing.
\SimpleSAML\Store\SQL | $store | The datastore. |
Definition at line 15 of file LogoutStore.php.
References $query, and SimpleSAML\Logger\warning().
|
staticprivate |
Retrieve sessions from the SQL datastore.
\SimpleSAML\Store\SQL | $store | The datastore. |
string | $authId | The authsource ID. |
string | $nameId | The hash of the users NameID. |
Definition at line 120 of file LogoutStore.php.
References $nameId, PHPMailer\PHPMailer\$params, $query, $res, and $row.
|
staticprivate |
Retrieve all session IDs from a key-value store.
\SimpleSAML\Store | $store | The datastore. |
string | $authId | The authsource ID. |
string | $nameId | The hash of the users NameID. |
array | $sessionIndexes | The session indexes. |
Definition at line 157 of file LogoutStore.php.
References $nameId, $res, and $sessionIndex.