googleauth - Class Google::Auth::ExternalAccount::Credentials (v1.12.0)

Reference documentation and code samples for the googleauth class Google::Auth::ExternalAccount::Credentials.

Provides an entrypoint for all Exernal Account credential classes.

Inherits

  • Object

Methods

.make_creds

def self.make_creds(options = {})

Create a ExternalAccount::Credentials

Parameters
  • json_key_io (IO) — an IO from which the JSON key can be read
  • scope (String, Array, nil) — the scope(s) to access
Raises
  • (MISSING_CREDENTIAL_SOURCE)

.read_json_key

def self.read_json_key(json_key_io)

Reads the required fields from the JSON.

Constants

AWS_SUBJECT_TOKEN_TYPE

value: "urn:ietf:params:aws:token-type:aws4_request".freeze
The subject token type used for AWS external_account credentials.

MISSING_CREDENTIAL_SOURCE

value: "missing credential source for external account".freeze

INVALID_EXTERNAL_ACCOUNT_TYPE

value: "credential source is not supported external account type".freeze