class AudienceTokenFactory implements TokenFactoryInterface

Methods

__construct(TokenFactoryInterface $factory, Closure $audienceResolver)

Create a token factory with a request-aware default audience.

string
create(array $grants = [], array $additionalClaims = [])

Create a token, preserving any audience supplied by the caller.

string
getAudience()

Get the current default audience for token creation and cache identity.

Details

at line 17
__construct(TokenFactoryInterface $factory, Closure $audienceResolver)

Create a token factory with a request-aware default audience.

Parameters

TokenFactoryInterface $factory
Closure $audienceResolver

at line 26
string create(array $grants = [], array $additionalClaims = [])

Create a token, preserving any audience supplied by the caller.

Parameters

array $grants
array $additionalClaims

Return Value

string

at line 38
string getAudience()

Get the current default audience for token creation and cache identity.

Return Value

string