# Eventarc V1 API - Class Google::Cloud::Eventarc::V1::Pipeline::Destination::AuthenticationConfig (v2.8.0)

2.8.0 (latest) 2.7.1 2.6.0 2.5.0 2.4.1 2.3.0 2.2.0 2.1.0 2.0.1 1.3.0 1.2.0 1.1.0 1.0.1 0.10.0 0.9.2 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.1 0.1.4 Reference documentation and code samples for the Eventarc V1 API class Google::Cloud::Eventarc::V1::Pipeline::Destination::AuthenticationConfig.

Represents a config used to authenticate message requests.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #google_oidc

    def google_oidc() -> ::Google::Cloud::Eventarc::V1::Pipeline::Destination::AuthenticationConfig::OidcToken

**Returns**

- ([::Google::Cloud::Eventarc::V1::Pipeline::Destination::AuthenticationConfig::OidcToken](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-eventarc-v1/latest/Google-Cloud-Eventarc-V1-Pipeline-Destination-AuthenticationConfig-OidcToken)) --- Optional. This authenticate method will apply Google OIDC tokens signed by a Google Cloud service account to the requests.


  Note: The following fields are mutually exclusive: `google_oidc`, `oauth_token`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #google_oidc=

    def google_oidc=(value) -> ::Google::Cloud::Eventarc::V1::Pipeline::Destination::AuthenticationConfig::OidcToken

**Parameter**

- **value** ([::Google::Cloud::Eventarc::V1::Pipeline::Destination::AuthenticationConfig::OidcToken](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-eventarc-v1/latest/Google-Cloud-Eventarc-V1-Pipeline-Destination-AuthenticationConfig-OidcToken)) --- Optional. This authenticate method will apply Google OIDC tokens signed by a Google Cloud service account to the requests.


  Note: The following fields are mutually exclusive: `google_oidc`, `oauth_token`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Eventarc::V1::Pipeline::Destination::AuthenticationConfig::OidcToken](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-eventarc-v1/latest/Google-Cloud-Eventarc-V1-Pipeline-Destination-AuthenticationConfig-OidcToken)) --- Optional. This authenticate method will apply Google OIDC tokens signed by a Google Cloud service account to the requests.


  Note: The following fields are mutually exclusive: `google_oidc`, `oauth_token`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #oauth_token

    def oauth_token() -> ::Google::Cloud::Eventarc::V1::Pipeline::Destination::AuthenticationConfig::OAuthToken

**Returns**

- ([::Google::Cloud::Eventarc::V1::Pipeline::Destination::AuthenticationConfig::OAuthToken](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-eventarc-v1/latest/Google-Cloud-Eventarc-V1-Pipeline-Destination-AuthenticationConfig-OAuthToken)) --- Optional. If specified, an [OAuth
  token](https://developers.google.com/identity/protocols/OAuth2) will be generated and attached as an `Authorization` header in the HTTP request.


  This type of authorization should generally only be used when calling
  Google APIs hosted on \*.googleapis.com.

  Note: The following fields are mutually exclusive: `oauth_token`, `google_oidc`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #oauth_token=

    def oauth_token=(value) -> ::Google::Cloud::Eventarc::V1::Pipeline::Destination::AuthenticationConfig::OAuthToken

**Parameter**

- **value** ([::Google::Cloud::Eventarc::V1::Pipeline::Destination::AuthenticationConfig::OAuthToken](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-eventarc-v1/latest/Google-Cloud-Eventarc-V1-Pipeline-Destination-AuthenticationConfig-OAuthToken)) --- Optional. If specified, an [OAuth
  token](https://developers.google.com/identity/protocols/OAuth2) will be generated and attached as an `Authorization` header in the HTTP request.


  This type of authorization should generally only be used when calling
  Google APIs hosted on \*.googleapis.com.

  Note: The following fields are mutually exclusive: `oauth_token`, `google_oidc`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Eventarc::V1::Pipeline::Destination::AuthenticationConfig::OAuthToken](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-eventarc-v1/latest/Google-Cloud-Eventarc-V1-Pipeline-Destination-AuthenticationConfig-OAuthToken)) --- Optional. If specified, an [OAuth
  token](https://developers.google.com/identity/protocols/OAuth2) will be generated and attached as an `Authorization` header in the HTTP request.


  This type of authorization should generally only be used when calling
  Google APIs hosted on \*.googleapis.com.

  Note: The following fields are mutually exclusive: `oauth_token`, `google_oidc`. If a field in that set is populated, all other fields in the set will automatically be cleared.