ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
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() | |
if (! $globalConfig->getBoolean( 'enable.authmemcookie', false)) $amc = SimpleSAML_AuthMemCookie::getInstance() |
Definition at line 27 of file authmemcookie.php.
$attributes = $s->getAttributes() |
Definition at line 41 of file authmemcookie.php.
$authData = array() |
Definition at line 43 of file authmemcookie.php.
if (!array_key_exists( $usernameAttr, $attributes)) $authData[ 'UserName'] = $attributes[$usernameAttr] |
Definition at line 53 of file authmemcookie.php.
$authData[ 'RemoteIP'] = $_SERVER['REMOTE_ADDR'] |
Definition at line 69 of file authmemcookie.php.
$cookieName = $amc->getCookieName() |
Definition at line 37 of file authmemcookie.php.
Referenced by Dflydev\FigCookies\SetCookie\createExpired(), SimpleSAML_AuthMemCookie\doLogout(), Dflydev\FigCookies\FigResponseCookies\expire(), SimpleSAML_AuthMemCookie\getCookieName(), sspmod_multiauth_Auth_Source_MultiAuth\getPreviousSource(), sspmod_consent_Consent_Store_Cookie\hasConsent(), Dflydev\FigCookies\CookiesTest\it_gets_cookie_by_name(), Dflydev\FigCookies\Cookie\listFromCookieString(), sspmod_multiauth_Auth_Source_MultiAuth\setPreviousSource(), ILIAS\HTTP\Cookies\CookieWrapperTest\setUp(), ILIAS\HTTP\Cookies\CookieJarWrapperTest\testWithDoesNotChangeTheCurrentObject(), and ILIAS\HTTP\Cookies\CookieJarWrapperTest\testWithoutDoesNotChangeTheCurrentObject().
Definition at line 76 of file authmemcookie.php.
$expirationTime = $s->getAuthData('Expire') |
Definition at line 95 of file authmemcookie.php.
$groupsAttr = $amc->getGroupsAttr() |
Definition at line 56 of file authmemcookie.php.
Referenced by SimpleSAML_AuthMemCookie\getGroupsAttr().
foreach ( $authData as $name=> $values) $memcache = $amc->getMemcache() |
Definition at line 94 of file authmemcookie.php.
Referenced by SimpleSAML_Memcache\addMemcacheServer(), SimpleSAML_AuthMemCookie\doLogout(), SimpleSAML_AuthMemCookie\getMemcache(), and SimpleSAML_Memcache\loadMemcacheServerGroup().
$s = new \SimpleSAML\Auth\Simple($sourceId) |
Definition at line 30 of file authmemcookie.php.
$session = SimpleSAML_Session::getSessionFromRequest() |
Definition at line 99 of file authmemcookie.php.
$sessionID = SimpleSAML\Utils\Random::generateID() |
Definition at line 36 of file authmemcookie.php.
Referenced by SimpleSAML\SessionHandler\__construct(), SimpleSAML_AuthMemCookie\doLogout(), SimpleSAML\SessionHandlerCookie\setCookie(), and SimpleSAML\SessionHandlerPHP\setCookie().
$sourceId = $amc->getAuthSource() |
Definition at line 29 of file authmemcookie.php.
$usernameAttr = $amc->getUsernameAttr() |
Definition at line 46 of file authmemcookie.php.
Referenced by SimpleSAML_AuthMemCookie\getUsernameAttr().
if ( $groupsAttr !==null) else |
Definition at line 65 of file authmemcookie.php.
try |
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.
Definition at line 17 of file authmemcookie.php.