PHP 클래스 sspmod_multiauth_Auth_Source_MultiAuth, simplesamlphp

저자: Lorenzo Gil, Yaco Sistemas S.L.
상속: extends SimpleSAML_Auth_Source
파일 보기 프로젝트 열기: simplesamlphp/simplesamlphp 1 사용 예제들

공개 메소드들

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