PHP Класс sspmod_cas_Auth_Source_CAS, simplesamlphp

Based on www/auth/login-cas.php by Mads Freek, RUC.
Автор: Danny Bollaert, UGent.
Наследование: extends SimpleSAML_Auth_Source
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
__construct ( array $info, array $config ) Constructor for this authentication source.
authenticate ( &$state ) Log-in using cas
finalStep ( state &$state ) : list Called by linkback, to finish validate/ finish logging in.
logout ( &$state ) Log out from this authentication source.

Защищенные методы

Метод Описание
casValidation ( string $ticket, string $service ) : list Main validation method, redirects to correct method (keeps finalStep clean)

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

Метод Описание
casServiceValidate ( string $ticket, string $service ) : list Uses the cas service validate, this provides additional attributes
casValidate ( string $ticket, string $service ) : list This the most simple version of validating, this provides only authentication validation

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

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

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

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

Log-in using cas
public authenticate ( &$state )

casValidation() защищенный Метод

Main validation method, redirects to correct method (keeps finalStep clean)
protected casValidation ( string $ticket, string $service ) : list
$ticket string
$service string
Результат list username and attributes

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

Called by linkback, to finish validate/ finish logging in.
public finalStep ( state &$state ) : list
$state state
Результат list username, casattributes/ldap attributes

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

This function should be overridden if the authentication source requires special steps to complete a logout operation. If the logout process requires a redirect, the state should be saved. Once the logout operation is completed, the state should be restored, and completeLogout should be called with the state. If this operation can be completed without showing the user a page, or redirecting, this function should return.
public logout ( &$state )