googleauth - Class Google::Auth::ExternalAccount::IdentityPoolCredentials (v1.12.1)

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

This module handles the retrieval of credentials from Google Cloud by utilizing the any 3PI provider then exchanging the credentials for a short-lived Google Cloud access token.

Inherits

  • Object

Methods

#client_id

def client_id()

Will always be nil, but method still gets used.

#initialize

def initialize(options = {}) -> IdentityPoolCredentials

Initialize from options map.

Parameters
  • audience (string)
  • credential_source (hash{symbol => value}) — credential_source is a hash that contains either source file or url. credential_source_format is either text or json. To define how we parse the credential response.
Returns

#retrieve_subject_token!

def retrieve_subject_token!()

Implementation of BaseCredentials retrieve_subject_token!