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
Show file Open project: simplesamlphp/simplesamlphp Class Usage Examples

Public Methods

Method 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.

Protected Methods

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

Private Methods

Method 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 method

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

authenticate() public method

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

casValidation() protected method

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

finalStep() public method

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

logout() public method

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 )