Durable Workflow PHP SDK

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

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
Return values
string|null
On this page

Search results