Class Google::Auth::GCECredentials
In: lib/googleauth/compute_engine.rb
Parent: Signet::OAuth2::Client

Extends Signet::OAuth2::Client so that the auth token is obtained from the GCE metadata server.

Methods

Constants

COMPUTE_AUTH_TOKEN_URI = "http://169.254.169.254/computeMetadata/v1/"\ "instance/service-accounts/default/token".freeze   The IP Address is used in the URIs to speed up failures on non-GCE systems.
COMPUTE_CHECK_URI = "http://169.254.169.254".freeze

Public Class methods

Detect if this appear to be a GCE instance, by checking if metadata is available

Public Instance methods

Overrides the super class method to change how access tokens are fetched.

[Validate]