PHP 클래스 Auth_Yadis_Discovery

High-level usage pattern is to call .getNextService(discover) in order to find the next available service for this user for this session. Once a request completes, call .cleanup() to clean up the session state.
파일 보기 프로젝트 열기: openid/php-openid

공개 프로퍼티들

프로퍼티 타입 설명
$DEFAULT_SUFFIX
$PREFIX

공개 메소드들

메소드 설명
__construct ( Auth_Yadis_PHPSession $session, string $url, string $session_key_suffix = null ) Initialize a discovery object.
cleanup ( $force = false ) Clean up Yadis-related services in the session and return the most-recently-attempted service from the manager, if one exists.
createManager ( $services, $yadis_url = null )
destroyManager ( $force = false )
getManager ( $force = false )
getNextService ( $discover_cb, $fetcher ) Return the next authentication service for the pair of user_input and session. This function handles fallback.
getSessionKey ( )

메소드 상세

__construct() 공개 메소드

Initialize a discovery object.
public __construct ( Auth_Yadis_PHPSession $session, string $url, string $session_key_suffix = null )
$session Auth_Yadis_PHPSession An object which implements the Auth_Yadis_PHPSession API.
$url string The URL on which to attempt discovery.
$session_key_suffix string The optional session key suffix override.

cleanup() 공개 메소드

Clean up Yadis-related services in the session and return the most-recently-attempted service from the manager, if one exists.
public cleanup ( $force = false )
$force True if the manager should be deleted regardless of whether it's a manager for $this->url.

createManager() 공개 메소드

public createManager ( $services, $yadis_url = null )

destroyManager() 공개 메소드

public destroyManager ( $force = false )
$force True if the manager should be deleted regardless of whether it's a manager for $this->url.

getManager() 공개 메소드

public getManager ( $force = false )
$force True if the manager should be returned regardless of whether it's a manager for $this->url.

getNextService() 공개 메소드

Return the next authentication service for the pair of user_input and session. This function handles fallback.
public getNextService ( $discover_cb, $fetcher )

getSessionKey() 공개 메소드

public getSessionKey ( )

프로퍼티 상세

$DEFAULT_SUFFIX 공개적으로 프로퍼티

public $DEFAULT_SUFFIX

$PREFIX 공개적으로 프로퍼티

public $PREFIX