Class Google::Auth::Credentials
In: lib/googleauth/credentials.rb
Parent: Object

This class is intended to be inherited by API-specific classes which overrides the SCOPE constant.

Methods

Constants

TOKEN_CREDENTIAL_URI = "https://oauth2.googleapis.com/token".freeze
AUDIENCE = "https://oauth2.googleapis.com/token".freeze
SCOPE = [].freeze
PATH_ENV_VARS = [].freeze
JSON_ENV_VARS = [].freeze
DEFAULT_PATHS = [].freeze

Attributes

client  [RW] 
project_id  [R] 

Public Class methods

Returns the default credentials checking, in this order, the path env evironment variables, json environment variables, default paths. If the previously stated locations do not contain keyfile information, this method defaults to use the application default.

rubocop:disable Metrics/AbcSize

Protected Instance methods

returns a new Hash with string keys instead of symbol keys.

Verify that the keyfile argument is a file.

Verify that the keyfile argument is provided.

[Validate]