TokenAuthentication
in package
implements
Authentication
FinalYes
Bearer authentication with optional independent control and worker tokens.
Table of Contents
Interfaces
- Authentication
- Supplies request headers without coupling the SDK to an auth provider.
Properties
- $controlToken : string|null
- $token : string|null
- $workerToken : string|null
Methods
- __construct() : mixed
- headers() : array<string, string>
- resolvedToken() : string|null
Properties
$controlToken read-only
private
string|null
$controlToken
= null
$token read-only
private
string|null
$token
= null
$workerToken read-only
private
string|null
$workerToken
= null
Methods
__construct()
public
__construct([string|null $token = null ][, string|null $controlToken = null ][, string|null $workerToken = null ]) : mixed
Parameters
- $token : string|null = null
- $controlToken : string|null = null
- $workerToken : string|null = null
headers()
public
headers(bool $workerRequest) : array<string, string>
Parameters
- $workerRequest : bool
Return values
array<string, string>resolvedToken()
private
resolvedToken(bool $workerRequest) : string|null
Parameters
- $workerRequest : bool