1.17.8 (latest) 1.17.7 1.16.2 1.15.1 1.14.0 1.13.1 1.12.2 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

- [Google::Auth::CredentialsLoader](https://docs.cloud.google.com/ruby/docs/reference/googleauth/latest/Google-Auth-CredentialsLoader.md.txt)

## Includes

- [Google::Auth::ExternalAccount::BaseCredentials](https://docs.cloud.google.com/ruby/docs/reference/googleauth/latest/Google-Auth-ExternalAccount-BaseCredentials.md.txt)
- [Google::Auth::ExternalAccount::ExternalAccountUtils](https://docs.cloud.google.com/ruby/docs/reference/googleauth/latest/Google-Auth-ExternalAccount-ExternalAccountUtils.md.txt)

## Methods

### #client_id

```ruby
def client_id()
```
Will always be nil, but method still gets used.

### #initialize

```ruby
def initialize(options = {}) -> IdentityPoolCredentials
```
Initialize from options map.
**Parameter**

- **options** (Hash) --- Configuration options
**Returns**

- ([IdentityPoolCredentials](https://docs.cloud.google.com/ruby/docs/reference/googleauth/latest/Google-Auth-ExternalAccount-IdentityPoolCredentials.md.txt)) --- a new instance of IdentityPoolCredentials
**Raises**

- ([Google::Auth::InitializationError](https://docs.cloud.google.com/ruby/docs/reference/googleauth/latest/Google-Auth-InitializationError.md.txt)) --- If credential_source format is invalid, field_name is missing, contains ambiguous sources, or is missing required fields

### #retrieve_subject_token!

```ruby
def retrieve_subject_token!() -> String
```
Implementation of BaseCredentials retrieve_subject_token!
**Returns**

- (String) --- The subject token
**Raises**

- ([Google::Auth::CredentialsError](https://docs.cloud.google.com/ruby/docs/reference/googleauth/latest/Google-Auth-CredentialsError.md.txt)) --- If the token can't be parsed from JSON or is missing