Overview
  • Package
  • Class
  • Tree
  • Todo

Packages

  • AddonValue
    • Interfaces
  • AdminHttpViewControllers
  • ApiV2Controllers
  • Authentication
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Strategies
  • Category
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • Customer
    • Address
    • Country
    • CountryZone
    • Interfaces
    • Storages
    • Validation
    • ValueObjects
  • Email
    • Collections
    • Entities
    • Exceptions
    • Interfaces
    • Repository
    • ValueObjects
  • Extensions
    • Customers
    • Emails
    • Helpers
    • Invoices
    • Orders
    • Serializers
    • Templates
  • Http
    • Collections
    • Exceptions
    • Factories
    • Interfaces
    • ValueObjects
  • HttpViewControllers
  • InfoBox
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
  • Invoice
    • Interfaces
    • ValueObjects
  • Loaders
    • CrossCuttingLoader
    • GXCoreLoader
    • Interfaces
  • Modules
    • Collections
    • Controllers
    • Interfaces
  • None
  • Order
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Storages
    • ValueObjects
  • Precheck
  • Product
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • ProductModule
    • Collections
    • Deleter
    • Entities
    • Factories
    • Interface
    • Interfaces
    • Reader
    • Repositories
    • Writer
  • Shared
    • ClassFinder
    • Exceptions
    • FileSystem
    • Interfaces
    • Storage
    • Types
  • SharedShoppingCart
    • Interfaces
  • Slider
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Storages
  • Statistics
    • Interfaces
  • UserConfiguration
    • Interfaces
    • Repository

Classes

  • AuthService

Class AuthService

Class AuthService

AuthService implements AuthServiceInterface
Package: Authentication
Category: System
Located at Services/Core/Authentication/AuthService.inc.php

Methods summary

public
# __construct( AuthSettingsInterface $settings, CustomerReadService $customerReadService )

Authentication constructor.

Authentication constructor.

Parameters

$settings
$customerReadService
public boolean
# authUser( AuthCredentialsInterface $authCredentials )

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

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

Parameters

$authCredentials
$authCredentials.

Returns

boolean
Returns the result of the authentication.

Implementation of

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

Verifies a password by its hash.

Verifies a password by its hash.

Parameters

$password
Password.
$hash
Hash.

Returns

boolean
Returns the result of the verification.

Implementation of

AuthServiceInterface::verify()
public string
# getHash( StringType $password )

Returns a hash of the given password.

Returns a hash of the given password.

Parameters

$password

Returns

string
Password Hash.

Implementation of

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

Returns a new hash of the given password.

Returns a new hash of the given password.

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

Parameters

$password
$hash

Returns

string
Rehashed password.

Implementation of

AuthServiceInterface::getRehashedPassword()

Properties summary

protected AuthSettingsInterface $settings

$settings

$settings

#
protected CustomerReadService $customerReadService

$customerReadService

$customerReadService

#
API documentation generated by ApiGen