PHP Class Piwik\Plugins\Login\Auth

Inheritance: implements Piwik\Auth
Afficher le fichier Open project: piwik/piwik Class Usage Examples

Protected Properties

Свойство Type Description
$hashedPassword
$login
$token_auth

Méthodes publiques

Méthode Description
__construct ( )
authenticate ( ) : Piwik\AuthResult Authenticates user
getLogin ( ) : string Returns the login of the user being authenticated.
getName ( ) : string Authentication module's name, e.g., "Login"
getTokenAuthSecret ( ) : string Returns the secret used to calculate a user's token auth.
setLogin ( string $login ) Accessor to set login name
setPassword ( string $password ) Sets the password to authenticate with.
setPasswordHash ( string $passwordHash ) Sets the password hash to use when authentication.
setTokenAuth ( string $token_auth ) Accessor to set authentication token

Private Methods

Méthode Description
authenticateWithPassword ( $login, $passwordHash )
authenticateWithToken ( $token )
authenticateWithTokenOrHashToken ( $token, $login )
authenticationSuccess ( array $user )

Method Details

__construct() public méthode

public __construct ( )

authenticate() public méthode

Authenticates user
public authenticate ( ) : Piwik\AuthResult
Résultat Piwik\AuthResult

getLogin() public méthode

Returns the login of the user being authenticated.
public getLogin ( ) : string
Résultat string

getName() public méthode

Authentication module's name, e.g., "Login"
public getName ( ) : string
Résultat string

getTokenAuthSecret() public méthode

Returns the secret used to calculate a user's token auth.
public getTokenAuthSecret ( ) : string
Résultat string

setLogin() public méthode

Accessor to set login name
public setLogin ( string $login )
$login string user login

setPassword() public méthode

Sets the password to authenticate with.
public setPassword ( string $password )
$password string

setPasswordHash() public méthode

Sets the password hash to use when authentication.
public setPasswordHash ( string $passwordHash )
$passwordHash string The password hash.

setTokenAuth() public méthode

Accessor to set authentication token
public setTokenAuth ( string $token_auth )
$token_auth string authentication token

Property Details

$hashedPassword protected_oe property

protected $hashedPassword

$login protected_oe property

protected $login

$token_auth protected_oe property

protected $token_auth