final class StaticBearerConfig (View source)

Holds the configured credential and scopes for the built-in external bearer authenticator.

Methods

__construct(string $token, array $scopes)

Captures the exact token used for later verification and the permissions assigned on success.

string
token()

Returns the credential that the built-in authenticator verifies in constant time.

string
array
scopes()

Returns the permissions assigned to an identity authenticated with the configured credential.

array

Details

__construct

__construct(string $token, array $scopes)

Captures the exact token used for later verification and the permissions assigned on success.

Parameters

string $token
array $scopes

token

string token()

Returns the credential that the built-in authenticator verifies in constant time.

Return Value

string

scopes

array scopes()

Returns the permissions assigned to an identity authenticated with the configured credential.

Return Value

array