◆ acquireAccessToken()
Google_Auth_ComputeEngine::acquireAccessToken |
( |
| ) |
|
Acquires a new access token from the compute engine metadata server.
- Exceptions
-
◆ authenticatedRequest()
Perform an authenticated / signed apiHttpRequest.
This function takes the apiHttpRequest, calls apiAuth->sign on it (which can modify the request in what ever way fits the auth mechanism) and then calls apiCurlIO\makeRequest on the signed request
- Parameters
-
- Return values
-
Google_Http_Request | The resulting HTTP response including the responseHttpCode, responseHeaders and responseBody. |
Reimplemented from Google_Auth_Abstract.
◆ isAccessTokenExpired()
Google_Auth_ComputeEngine::isAccessTokenExpired |
( |
| ) |
|
Returns if the access_token is expired.
- Return values
-
bool | Returns True if the access_token is expired. |
◆ setAccessToken()
Google_Auth_ComputeEngine::setAccessToken |
( |
| $token | ) |
|
◆ sign()
Include an accessToken in a given apiHttpRequest.
- Parameters
-
- Return values
-
- Exceptions
-
Reimplemented from Google_Auth_Abstract.
◆ METADATA_AUTH_URL
const Google_Auth_ComputeEngine::METADATA_AUTH_URL |
Initial value:=
'http://metadata/computeMetadata/v1/instance/service-accounts/default/token'
The documentation for this class was generated from the following file:
- lib/google/src/Google/Auth/ComputeEngine.php