StaticBearerConfig
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.
token()
Returns the credential that the built-in authenticator verifies in constant time.
string
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.
token
string
token()
Returns the credential that the built-in authenticator verifies in constant time.
scopes
array
scopes()
Returns the permissions assigned to an identity authenticated with the configured credential.