StyleEditAuthenticator
in package
Class StyleEditAuthenticator
Table of Contents
- BEARER_PATTERN = '/^Bearer\s/'
- $customerServiceAdapter : CustomerServiceAdapterInterface
- $jwtAdapter : JwtAdapterInterface
- __construct() : mixed
- StyleEditAuthenticator constructor.
- authorize() : bool
- jwtIsValid() : bool
- getBearer() : string
Constants
BEARER_PATTERN
protected
mixed
BEARER_PATTERN
= '/^Bearer\s/'
Properties
$customerServiceAdapter
protected
CustomerServiceAdapterInterface
$customerServiceAdapter
$jwtAdapter
protected
JwtAdapterInterface
$jwtAdapter
Methods
__construct()
StyleEditAuthenticator constructor.
public
__construct(JwtAdapterInterface $jwtAdapter, CustomerServiceAdapterInterface $customerServiceAdapter) : mixed
Parameters
- $jwtAdapter : JwtAdapterInterface
- $customerServiceAdapter : CustomerServiceAdapterInterface
Return values
mixed —authorize()
public
authorize() : bool
Tags
Return values
bool —jwtIsValid()
public
jwtIsValid(array<string|int, mixed> $token) : bool
Parameters
- $token : array<string|int, mixed>
Return values
bool —getBearer()
protected
getBearer() : string