googleauth - Class Google::Auth::ExternalAccount::Credentials (v1.15.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 = {}) -> Google::Auth::ExternalAccount::AwsCredentials, Google::Auth::ExternalAccount::IdentityPoolCredentials, Google::Auth::ExternalAccount::PluggableAuthCredentials

Create a ExternalAccount::Credentials

Parameter
  • options (Hash) — Options for creating credentials
Raises

.read_json_key

def self.read_json_key(json_key_io) -> Hash

Reads the required fields from the JSON.

Parameter
  • json_key_io (IO) — An IO object containing the JSON key
Returns
  • (Hash) — The parsed JSON key
Raises

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