PHP Class sspmod_cas_Auth_Source_CAS, simplesamlphp

Based on www/auth/login-cas.php by Mads Freek, RUC.
Author: Danny Bollaert, UGent.
Inheritance: extends SimpleSAML_Auth_Source
Afficher le fichier Open project: simplesamlphp/simplesamlphp Class Usage Examples

Méthodes publiques

Méthode Description
__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.

Méthodes protégées

Méthode Description
casValidation ( string $ticket, string $service ) : list Main validation method, redirects to correct method (keeps finalStep clean)

Private Methods

Méthode Description
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

Method Details

__construct() public méthode

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

authenticate() public méthode

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

casValidation() protected méthode

Main validation method, redirects to correct method (keeps finalStep clean)
protected casValidation ( string $ticket, string $service ) : list
$ticket string
$service string
Résultat list username and attributes

finalStep() public méthode

Called by linkback, to finish validate/ finish logging in.
public finalStep ( state &$state ) : list
$state state
Résultat list username, casattributes/ldap attributes

logout() public méthode

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 )