Method | Description | |
---|---|---|
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. |
Method | Description | |
---|---|---|
_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. |
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. |
return | array | The credentials needed to login ('userId', 'password', 'server') or false if autologin not available. |
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. |
public static authenticateCallback ( ) |
public static getAutoLoginServer ( ) : string | ||
return | string | The server key, or null if none available. |
public static transparent ( Horde_Auth_Application $auth_ob ) : boolean | ||
$auth_ob | Horde_Auth_Application | The authentication object. |
return | boolean | True on successful transparent authentication. |