ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
authmemcookie.php File Reference

Go to the source code of this file.

Variables

 try
 This file implements an script which can be used to authenticate users with Auth MemCookie. More...
 
if(! $globalConfig->getBoolean('enable.authmemcookie', false)) $amc = SimpleSAML_AuthMemCookie::getInstance()
 
 $sourceId = $amc->getAuthSource()
 
 $s = new \SimpleSAML\Auth\Simple($sourceId)
 
 $sessionID = SimpleSAML\Utils\Random::generateID()
 
 $cookieName = $amc->getCookieName()
 
 $attributes = $s->getAttributes()
 
 $authData = array()
 
 $usernameAttr = $amc->getUsernameAttr()
 
if(!array_key_exists($usernameAttr, $attributes)) $authData ['UserName'] = $attributes[$usernameAttr]
 
 $groupsAttr = $amc->getGroupsAttr()
 
if($groupsAttr !==null) else
 
 $authData ['RemoteIP'] = $_SERVER['REMOTE_ADDR']
 
foreach($attributes as $n=> $v) $data = ''
 
foreach($authData as $name=> $values) $memcache = $amc->getMemcache()
 
 $expirationTime = $s->getAuthData('Expire')
 
 $session = SimpleSAML_Session::getSessionFromRequest()
 

Variable Documentation

◆ $amc

if (! $globalConfig->getBoolean( 'enable.authmemcookie', false)) $amc = SimpleSAML_AuthMemCookie::getInstance()

Definition at line 27 of file authmemcookie.php.

◆ $attributes

$attributes = $s->getAttributes()

Definition at line 41 of file authmemcookie.php.

◆ $authData [1/3]

$authData = array()

Definition at line 43 of file authmemcookie.php.

◆ $authData [2/3]

if (!array_key_exists( $usernameAttr, $attributes)) $authData[ 'UserName'] = $attributes[$usernameAttr]

Definition at line 53 of file authmemcookie.php.

◆ $authData [3/3]

$authData[ 'RemoteIP'] = $_SERVER['REMOTE_ADDR']

Definition at line 69 of file authmemcookie.php.

◆ $cookieName

◆ $data

foreach ( $attributes as $n=> $v) $data = ''

Definition at line 76 of file authmemcookie.php.

◆ $expirationTime

$expirationTime = $s->getAuthData('Expire')

Definition at line 95 of file authmemcookie.php.

◆ $groupsAttr

$groupsAttr = $amc->getGroupsAttr()

Definition at line 56 of file authmemcookie.php.

Referenced by SimpleSAML_AuthMemCookie\getGroupsAttr().

◆ $memcache

foreach ( $authData as $name=> $values) $memcache = $amc->getMemcache()

◆ $s

$s = new \SimpleSAML\Auth\Simple($sourceId)

Definition at line 30 of file authmemcookie.php.

◆ $session

Definition at line 99 of file authmemcookie.php.

◆ $sessionID

◆ $sourceId

$sourceId = $amc->getAuthSource()

Definition at line 29 of file authmemcookie.php.

◆ $usernameAttr

$usernameAttr = $amc->getUsernameAttr()

Definition at line 46 of file authmemcookie.php.

Referenced by SimpleSAML_AuthMemCookie\getUsernameAttr().

◆ else

if ( $groupsAttr !==null) else
Initial value:
{
$authData['Groups'] = array()
$authData

Definition at line 65 of file authmemcookie.php.

◆ try

try
Initial value:
{
$globalConfig
static getInstance($instancename='simplesaml')
Get a configuration file by its instance name.

This file implements an script which can be used to authenticate users with Auth MemCookie.

See: http://authmemcookie.sourceforge.net/

The configuration for this script is stored in config/authmemcookie.php.

The file extra/auth_memcookie.conf contains an example of how Auth Memcookie can be configured to use SimpleSAMLphp.

Deprecated:
This file has been deprecated and will be removed in SSP 2.0. Use the memcookie module instead.

Definition at line 17 of file authmemcookie.php.