Reference documentation and code samples for the Google Auth Library Client class FetchAuthTokenCache.
A class to implement caching for any object implementing FetchAuthTokenInterface
Namespace
Google \ AuthMethods
__construct
fetcher
FetchAuthTokenInterface
A credentials fetcher
cacheConfig
array|null
Configuration for the cache
cache
Psr\Cache\CacheItemPoolInterface
getFetcher
FetchAuthTokenInterface
fetchAuthToken
Implements FetchAuthTokenInterface#fetchAuthToken.
Checks the cache for a valid auth token and fetches the auth tokens from the supplied fetcher.
httpHandler
callable|null
callback which delivers psr7 request
array
getCacheKey
Obtains a key that can used to cache the results of #fetchAuthToken.
string
getLastReceivedToken
Returns an associative array with the token and expiration time.
array|null
getClientName
Get the client name from the fetcher.
httpHandler
callable|null
An HTTP handler to deliver PSR7 requests.
string
signBlob
Sign a blob using the fetcher.
stringToSign
string
The string to sign.
forceOpenSsl
bool
Require use of OpenSSL for local signing. Does
not apply to signing done using external services. Defaults to false
.
string
getQuotaProject
Get the quota project used for this API request from the credentials fetcher.
string|null
getProjectId
Get the Project ID from the fetcher.
httpHandler
callable|null
Callback which delivers psr7 request
string|null
getUniverseDomain
Get the universe domain from the credential. This should always return a string, and default to "googleapis.com" if no universe domain is configured.
updateMetadata
Updates metadata with the authorization token.
metadata
array
metadata hashmap
authUri
string
optional auth uri
httpHandler
callable|null
callback which delivers psr7 request
array