Class AuthService

Class AuthService

AuthService implements AuthServiceInterface

Methods summary

public __construct( AuthSettingsInterface $settings, CustomerReadService $customerReadService )

Authentication constructor.

public authUser( AuthCredentialsInterface $authCredentials ) : boolean

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

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

Verifies a password by its hash.

public getHash( StringType $password ) : string

Returns a hash of the given password.

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

Returns a new hash of the given password.

Properties summary

protected $settings : AuthSettingsInterface

$settings


		
protected $customerReadService : CustomerReadService

$customerReadService