PHP Класс sspmod_multiauth_Auth_Source_MultiAuth, simplesamlphp

Автор: Lorenzo Gil, Yaco Sistemas S.L.
Наследование: extends SimpleSAML_Auth_Source
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
__construct ( array $info, array $config ) Constructor for this authentication source.
authenticate ( &$state ) Prompt the user with a list of authentication sources.
delegateAuthentication ( string $authId, array $state ) Delegate authentication.
getPreviousSource ( ) Get the previous authentication source.
logout ( &$state ) Log out from this authentication source.
setPreviousSource ( string $source ) Set the previous authentication source.

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

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

Constructor for this authentication source.
public __construct ( array $info, array $config )
$info array Information about this authentication source.
$config array Configuration.

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

This method saves the information about the configured sources, and redirects to a page where the user must select one of these authentication sources. This method never return. The authentication process is finished in the delegateAuthentication method.
public authenticate ( &$state )

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

This method is called once the user has choosen one authentication source. It saves the selected authentication source in the session to be able to logout properly. Then it calls the authenticate method on such selected authentication source.
public static delegateAuthentication ( string $authId, array $state )
$authId string Selected authentication source
$state array Information about the current authentication.

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

This method retrieves the authentication source that the user selected last time or NULL if this is the first time or remembering is disabled.
public getPreviousSource ( )

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

This method retrieves the authentication source used for this session and then call the logout method on it.
public logout ( &$state )

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

This method remembers the authentication source that the user selected by storing its name in a cookie.
public setPreviousSource ( string $source )
$source string Name of the authentication source the user selected.