AuthorizationTokenValidatorInterface
Validates bearer tokens for HTTP transports.
Implementations should validate the access token and return an AuthorizationResult indicating whether access is allowed or denied.
Tags
Table of Contents
Methods
- validate() : AuthorizationResult
- Validates an access token extracted from the Authorization header.
Methods
validate()
Validates an access token extracted from the Authorization header.
public
validate(string $accessToken) : AuthorizationResult
Parameters
- $accessToken : string
-
The bearer token (without "Bearer " prefix)
Return values
AuthorizationResult —The result of the validation