AuthService

Implements \AuthServiceInterface

Class AuthService

category

System

package

Authentication

Methods

Authentication constructor.

__construct(\AuthSettingsInterface $settings, \CustomerReadService $customerReadService) 

Arguments

$customerReadService

\CustomerReadService

Authenticates a user by its email and password stored in the given AuthCredentialsInterface object.

authUser(\AuthCredentialsInterface $authCredentials) : boolean

Arguments

$authCredentials

\AuthCredentialsInterface

.

Response

boolean

Returns the result of the authentication.

Returns a hash of the given password.

getHash(\StringType $password) : string

Arguments

$password

\StringType

Response

string

Password Hash.

Returns a new hash of the given password.

getRehashedPassword(\StringType $password, \NonEmptyStringType $hash) : string

It will only differ from the given hash if the given hash is valid but does match to the current auth strategy.

Arguments

$password

\StringType

Response

string

Rehashed password.

Verifies a password by its hash.

verify(\StringType $password, \NonEmptyStringType $hash) : boolean

Arguments

$password

\StringType

Password.

$hash

\NonEmptyStringType

Hash.

Response

boolean

Returns the result of the verification.

Properties

settings

settings : \AuthSettingsInterface

customerReadService

customerReadService : \CustomerReadService
var

Type(s)

\CustomerReadService