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::PluggableAuthCredentials.

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 = {}) -> PluggableAuthCredentials
```
Initialize from options map.
**Parameter**

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

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

- ([Google::Auth::InitializationError](https://docs.cloud.google.com/ruby/docs/reference/googleauth/latest/Google-Auth-InitializationError.md.txt)) --- If executable source, command is missing, or timeout is invalid

### #retrieve_subject_token!

```ruby
def retrieve_subject_token!() -> String
```
Retrieves the subject token using the credential_source object.
**Returns**

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

- ([Google::Auth::CredentialsError](https://docs.cloud.google.com/ruby/docs/reference/googleauth/latest/Google-Auth-CredentialsError.md.txt)) --- If executables are not allowed, if token retrieval fails, or if the token is invalid

## Constants

### ENABLE_PLUGGABLE_ENV

**value:** "GOOGLE_EXTERNAL_ACCOUNT_ALLOW_EXECUTABLES".freeze  
constant for pluggable auth enablement in environment variable.

### EXECUTABLE_SUPPORTED_MAX_VERSION

**value:**1

### EXECUTABLE_TIMEOUT_MILLIS_DEFAULT

**value:**30 \* 1000

### EXECUTABLE_TIMEOUT_MILLIS_LOWER_BOUND

**value:**5 \* 1000

### EXECUTABLE_TIMEOUT_MILLIS_UPPER_BOUND

**value:**120 \* 1000

### ID_TOKEN_TYPE

**value:**\["urn:ietf:params:oauth:token-type:jwt", "urn:ietf:params:oauth:token-type:id_token"\].freeze