# Class AuthenticationConfig (1.21.0)

1.21.0 (latest) 1.20.0 1.19.0 1.18.0 1.17.0 1.16.0 1.15.3 1.14.0 1.13.2 1.12.0 1.11.5 1.10.0 1.9.2 1.8.1 1.7.0 1.6.3 1.5.1 1.4.2 1.3.0 1.2.1 1.1.0 1.0.2 0.2.4 0.1.0

    AuthenticationConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Represents a config used to authenticate message requests.

This message has `oneof`_ fields (mutually exclusive fields).
For each oneof, at most one member field can be set at the same time.
Setting any member of the oneof automatically clears all other
members.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `google_oidc` | `https://docs.cloud.google.com/python/docs/reference/eventarc/latest/google.cloud.eventarc_v1.types.Pipeline.Destination.AuthenticationConfig.OidcToken` Optional. This authenticate method will apply Google OIDC tokens signed by a Google Cloud service account to the requests. This field is a member of `oneof`_ `authentication_method_descriptor`. |
| `oauth_token` | `https://docs.cloud.google.com/python/docs/reference/eventarc/latest/google.cloud.eventarc_v1.types.Pipeline.Destination.AuthenticationConfig.OAuthToken` Optional. If specified, an \`OAuth token |

## Classes

### OAuthToken

    OAuthToken(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Contains information needed for generating an `OAuth
token <https://developers.google.com/identity/protocols/OAuth2>`__.
This type of authorization should generally only be used when
calling Google APIs hosted on \*.googleapis.com.

### OidcToken

    OidcToken(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Represents a config used to authenticate with a Google OIDC
token using a Google Cloud service account. Use this
authentication method to invoke your Cloud Run and Cloud
Functions destinations or HTTP endpoints that support Google
OIDC.