15 require_once(
'_include.php');
22 if (!
$globalConfig->getBoolean(
'enable.authmemcookie',
false)) {
50 "'. This attribute is expected to contain the username." 60 "The user doesn't have an attribute named '".
$groupsAttr.
61 "'. This attribute is expected to contain the groups the user is a member of." 78 if (is_array($values)) {
79 foreach ($values as
$i => $value) {
80 if (!is_a($value,
'DOMNodeList')) {
84 if ($value->length === 0) {
87 $values[
$i] = new \SAML2\XML\saml\AttributeValue($value->item(0)->parentNode);
89 $values = implode(
':', $values);
100 $session->registerLogoutHandler(
$sourceId,
'SimpleSAML_AuthMemCookie',
'logoutHandler');
static generateID()
Generate a random identifier, ID_LENGTH bytes long.
foreach($authData as $name=> $values) $memcache
if((!isset($_SERVER['DOCUMENT_ROOT'])) OR(empty($_SERVER['DOCUMENT_ROOT']))) $_SERVER['DOCUMENT_ROOT']
foreach($attributes as $n=> $v) $data
static getInstance()
This function is used to retrieve the singleton instance of this class.
static redirectTrustedURL($url, $parameters=array())
This function redirects to the specified URL without performing any security checks.
Attribute-related utility methods.
static setCookie($name, $value, $params=null, $throw=true)
Set a cookie.
if(! $globalConfig->getBoolean('enable.authmemcookie', false)) $amc
Create styles array
The data for the language used.
static getSessionFromRequest()
Retrieves the current session.
static getInstance($instancename='simplesaml')
Get a configuration file by its instance name.