AudienceTokenFactory
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.
at line 26
string
create(array $grants = [], array $additionalClaims = [])
Create a token, preserving any audience supplied by the caller.
at line 38
string
getAudience()
Get the current default audience for token creation and cache identity.