private function OauthTokenFileStorage::getTokenData in Apigee Edge 8
Gets the token data from the cache or the file.
Parameters
bool $reset: Whether or not to reload the token data.
Return value
array The token data from the internal cache or the token file. Returned array could be empty!
6 calls to OauthTokenFileStorage::getTokenData()
- OauthTokenFileStorage::getAccessToken in src/
OauthTokenFileStorage.php - OauthTokenFileStorage::getExpires in src/
OauthTokenFileStorage.php - OauthTokenFileStorage::getRefreshToken in src/
OauthTokenFileStorage.php - OauthTokenFileStorage::getScope in src/
OauthTokenFileStorage.php - OauthTokenFileStorage::getTokenType in src/
OauthTokenFileStorage.php
File
- src/
OauthTokenFileStorage.php, line 247
Class
- OauthTokenFileStorage
- Stores OAuth token data in a file.
Namespace
Drupal\apigee_edgeCode
private function getTokenData(bool $reset = FALSE) : array {
// Load from storage if the cached value is empty.
if ($reset || empty($this->tokenData)) {
$this->tokenData = $this
->getFromStorage();
}
return $this->tokenData;
}