$storage
$storage :
The JWT bearer authorization grant implements JWT (JSON Web Tokens) as a grant type per the IETF draft.
__construct(\OAuth2\Storage\JwtBearerInterface $storage, string $audience, \OAuth2\Encryption\EncryptionInterface|\OAuth2\GrantType\JWT $jwtUtil = null, array $config = array())
Creates an instance of the JWT bearer grant type.
| \OAuth2\Storage\JwtBearerInterface | $storage |
|
| string | $audience |
|
| \OAuth2\Encryption\EncryptionInterface|\OAuth2\GrantType\JWT | $jwtUtil |
|
| array | $config |
validateRequest(\OAuth2\RequestInterface $request, \OAuth2\ResponseInterface $response) : boolean|mixed|null
Validates the data from the decoded JWT.
| \OAuth2\RequestInterface | $request | |
| \OAuth2\ResponseInterface | $response |
TRUE if the JWT request is valid and can be decoded. Otherwise, FALSE is returned.@see GrantTypeInterface::getTokenData()
createAccessToken(\OAuth2\ResponseType\AccessTokenInterface $accessToken, mixed $client_id, mixed $user_id, string $scope) : array
Creates an access token that is NOT associated with a refresh token.
If a subject (sub) the name of the user/account we are accessing data on behalf of.
| \OAuth2\ResponseType\AccessTokenInterface | $accessToken | |
| mixed | $client_id |
|
| mixed | $user_id |
|
| string | $scope |
|