class SimpleAuthenticator implements Authenticator

Trivial implementation of Authenticator.

Methods

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

No description

authenticate(string $username, string $password)

Authenticates against the in-memory list of users (case-insensitive username).

bool
verifyPassword(string $password, string $passOrHash)

No description

Details

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

No description

Parameters

array $passwords
array $roles
array $data

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

Authenticates against the in-memory list of users (case-insensitive username).

Parameters

string $username
string $password

Return Value

IIdentity

Exceptions

AuthenticationException

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

No description

Parameters

string $password
string $passOrHash

Return Value

bool