FetchAuthTokenInterface
interface FetchAuthTokenInterface (View source)
An interface implemented by objects that can fetch auth tokens.
Methods
array
fetchAuthToken(callable $httpHandler = null)
Fetches the auth tokens based on the current state.
string
getCacheKey()
Obtains a key that can used to cache the results of #fetchAuthToken.
null|array
getLastReceivedToken()
Returns an associative array with the token and expiration time.
string
getClientName(callable $httpHandler = null)
Returns the current Client Name.
Details
array
fetchAuthToken(callable $httpHandler = null)
Fetches the auth tokens based on the current state.
string
getCacheKey()
Obtains a key that can used to cache the results of #fetchAuthToken.
If the value is empty, the auth token is not cached.
null|array
getLastReceivedToken()
Returns an associative array with the token and expiration time.
string
getClientName(callable $httpHandler = null)
Returns the current Client Name.