Get a token for Google Compute Engine
Uses the metadata service available on GCE VMs to fetch an access token.
credentials_gce( scopes = "https://www.googleapis.com/auth/cloud-platform", service_account = "default", ... )
scopes |
A character vector of scopes to request. Pick from those listed at https://developers.google.com/identity/protocols/oauth2/scopes. For certain token flows, the
|
service_account |
Name of the GCE service account to use. |
... |
Additional arguments passed to all credential functions. |
A GceToken()
or NULL
.
Other credential functions:
credentials_app_default()
,
credentials_byo_oauth2()
,
credentials_service_account()
,
credentials_user_oauth2()
,
token_fetch()
## Not run: credentials_gce() ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.