PHP Класс SimpleSAML_AuthMemCookie, simplesamlphp

It handles the configuration, and implements the logout handler.
Устаревший: This class has been deprecated and will be removed in SSP 2.0. Use the memcookie module instead.
Автор: Olav Morken, UNINETT AS.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
getAuthSource ( ) : string Retrieve the authentication source that should be used to authenticate the user.
getCookieName ( ) : string This function retrieves the name of the cookie from the configuration.
getGroupsAttr ( ) : string This function retrieves the name of the attribute which contains the groups from the configuration.
getInstance ( ) : SimpleSAML_AuthMemCookie This function is used to retrieve the singleton instance of this class.
getMemcache ( ) : Memcache This function creates and initializes a Memcache object from our configuration.
getUsernameAttr ( ) : string This function retrieves the name of the attribute which contains the username from the configuration.
logoutHandler ( ) This function implements the logout handler. It deletes the information from Memcache.

Приватные методы

Метод Описание
__construct ( ) This function implements the constructor for this class. It loads the Auth MemCookie configuration.
doLogout ( ) This function logs the user out by deleting the session information from memcache.

Описание методов

getAuthSource() публичный Метод

Retrieve the authentication source that should be used to authenticate the user.
public getAuthSource ( ) : string
Результат string The login type which should be used for Auth MemCookie.

getCookieName() публичный Метод

This function retrieves the name of the cookie from the configuration.
public getCookieName ( ) : string
Результат string The name of the cookie.

getGroupsAttr() публичный Метод

This function retrieves the name of the attribute which contains the groups from the configuration.
public getGroupsAttr ( ) : string
Результат string The name of the attribute which contains the groups.

getInstance() публичный статический Метод

This function is used to retrieve the singleton instance of this class.
public static getInstance ( ) : SimpleSAML_AuthMemCookie
Результат SimpleSAML_AuthMemCookie The singleton instance of this class.

getMemcache() публичный Метод

This function creates and initializes a Memcache object from our configuration.
public getMemcache ( ) : Memcache
Результат Memcache A Memcache object initialized from our configuration.

getUsernameAttr() публичный Метод

This function retrieves the name of the attribute which contains the username from the configuration.
public getUsernameAttr ( ) : string
Результат string The name of the attribute which contains the username.

logoutHandler() публичный статический Метод

This function implements the logout handler. It deletes the information from Memcache.
public static logoutHandler ( )