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
Extended By
Includes
Methods
#client_id
def client_id()
Will always be nil, but method still gets used.
#initialize
def initialize(options = {}) -> IdentityPoolCredentials
Initialize from options map.
- options (Hash) — Configuration options
- (IdentityPoolCredentials) — a new instance of IdentityPoolCredentials
- (Google::Auth::InitializationError) — If credential_source format is invalid, field_name is missing, contains ambiguous sources, or is missing required fields
#retrieve_subject_token!
def retrieve_subject_token!() -> String
Implementation of BaseCredentials retrieve_subject_token!
- (String) — The subject token
- (Google::Auth::CredentialsError) — If the token can't be parsed from JSON or is missing