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
파일 보기 프로젝트 열기: simplesamlphp/simplesamlphp 1 사용 예제들

공개 메소드들

메소드 설명
__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 )