- Author
- Brent Shaffer <bshafs at gmail dot com>
Definition at line 12 of file JwtAccessToken.php.
◆ __construct()
- Parameters
-
OAuth2\Encryption\PublicKeyInterface | $publicKeyStorage | the public key encryption to use |
OAuth2\Storage\AccessTokenInterface | $tokenStorage | OPTIONAL persist the access token to another storage. This is useful if you want to retain access token grant information somewhere, but is not necessary when using this grant type. |
OAuth2\Encryption\EncryptionInterface | $encryptionUtil | OPTIONAL class to use for "encode" and "decode" functions. |
Definition at line 25 of file JwtAccessToken.php.
◆ convertJwtToOAuth2()
OAuth2\Storage\JwtAccessToken::convertJwtToOAuth2 |
( |
|
$tokenData | ) |
|
|
protected |
◆ getAccessToken()
OAuth2\Storage\JwtAccessToken::getAccessToken |
( |
|
$oauth_token | ) |
|
Look up the supplied oauth_token from storage.
We need to retrieve access token data as we create and verify tokens.
- Parameters
-
$oauth_token | oauth_token to be check with. |
- Returns
- An associative array as below, and return NULL if the supplied oauth_token is invalid:
- expires: Stored expiration in unix timestamp.
- client_id: (optional) Stored client identifier.
- user_id: (optional) Stored user identifier.
- scope: (optional) Stored scope values in space-separated string.
- id_token: (optional) Stored id_token (if "use_openid_connect" is true).
Implements OAuth2\Storage\AccessTokenInterface.
Definition at line 35 of file JwtAccessToken.php.
◆ setAccessToken()
OAuth2\Storage\JwtAccessToken::setAccessToken |
( |
|
$oauth_token, |
|
|
|
$client_id, |
|
|
|
$user_id, |
|
|
|
$expires, |
|
|
|
$scope = null |
|
) |
| |
Store the supplied access token values to storage.
We need to store access token data as we create and verify tokens.
- Parameters
-
| $oauth_token | oauth_token to be stored. |
| $client_id | client identifier to be stored. |
| $user_id | user identifier to be stored. |
int | $expires | expiration to be stored as a Unix timestamp. |
string | $scope | OPTIONAL Scopes to be stored in space-separated string. |
Implements OAuth2\Storage\AccessTokenInterface.
Definition at line 55 of file JwtAccessToken.php.
◆ unsetAccessToken()
OAuth2\Storage\JwtAccessToken::unsetAccessToken |
( |
|
$access_token | ) |
|
◆ $encryptionUtil
OAuth2\Storage\JwtAccessToken::$encryptionUtil |
|
protected |
◆ $publicKeyStorage
OAuth2\Storage\JwtAccessToken::$publicKeyStorage |
|
protected |
◆ $tokenStorage
OAuth2\Storage\JwtAccessToken::$tokenStorage |
|
protected |
The documentation for this class was generated from the following file: