PHP 클래스 IMP_Auth, horde

저자: Chuck Hagenbuch ([email protected])
저자: Jon Parise ([email protected])
저자: Michael Slusarz ([email protected])
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

공개 메소드들

메소드 설명
authenticate ( array $credentials = [] ) Authenticate to the mail server.
authenticateCallback ( ) Perform post-login tasks. Session creation requires the full IMP environment, which is not available until this callback.
getAutoLoginServer ( ) : string Returns the autologin server key.
transparent ( Horde_Auth_Application $auth_ob ) : boolean Perform transparent authentication.

보호된 메소드들

메소드 설명
_canAutoLogin ( string $server_key = null, boolean $force = false ) : array Returns whether we can log in without a login screen for $server_key.
_log ( boolean $status, IMP_Imap $imap_ob ) Log login related message.

메소드 상세

_canAutoLogin() 보호된 정적인 메소드

Returns whether we can log in without a login screen for $server_key.
protected static _canAutoLogin ( string $server_key = null, boolean $force = false ) : array
$server_key string The server to check. Defaults to the autologin server.
$force boolean If true, check $server_key even if there is more than one server available.
리턴 array The credentials needed to login ('userId', 'password', 'server') or false if autologin not available.

_log() 보호된 정적인 메소드

Log login related message.
protected static _log ( boolean $status, IMP_Imap $imap_ob )
$status boolean True on success, false on failure.
$imap_ob IMP_Imap The IMP_Imap object to use.

authenticate() 공개 정적인 메소드

Authenticate to the mail server.
public static authenticate ( array $credentials = [] )
$credentials array An array of login credentials. If empty, attempts to login to the cached session. - password: (string) The user password. - server: (string) The server key to use (from backends.php). - userId: (string) The username.

authenticateCallback() 공개 정적인 메소드

Perform post-login tasks. Session creation requires the full IMP environment, which is not available until this callback.
public static authenticateCallback ( )

getAutoLoginServer() 공개 정적인 메소드

Returns the autologin server key.
public static getAutoLoginServer ( ) : string
리턴 string The server key, or null if none available.

transparent() 공개 정적인 메소드

Perform transparent authentication.
public static transparent ( Horde_Auth_Application $auth_ob ) : boolean
$auth_ob Horde_Auth_Application The authentication object.
리턴 boolean True on successful transparent authentication.