class SimpleAuthenticator implements Authenticator

Trivial implementation of Authenticator.

Methods

__construct(array $passwords, array $roles = [], array $data = [])

No description

authenticate(string $username, string $password)

Performs an authentication against e.g. database.

bool
verifyPassword(string $password, string $passOrHash)

No description

Details

at line 37
__construct(array $passwords, array $roles = [], array $data = [])

No description

Parameters

array $passwords

list of pairs username => password

array $roles

list of pairs username => role[]

array $data

list of pairs username => mixed[]

at line 50
IIdentity authenticate(string $username, string $password)

Performs an authentication against e.g. database.

and returns IIdentity on success or throws AuthenticationException

Parameters

string $username
string $password

Return Value

IIdentity

Exceptions

AuthenticationException

at line 66
protected bool verifyPassword(string $password, string $passOrHash)

No description

Parameters

string $password
string $passOrHash

Return Value

bool

Traits

SmartObject