mongoc_oidc_credential_t - Man Page

Synopsis

typedef struct _mongoc_oidc_credential_t mongoc_oidc_credential_t;

Represents the return value of a mongoc_oidc_callback_fn_t <>.

The value will be returned by the mongoc_oidc_callback_fn_t <> stored in an mongoc_oidc_callback_t <> object when it is invoked by an associated mongoc_client_t <> or mongoc_client_pool_t <> object.

Return Values

The list of currently supported return values are:

ValueVersionsDescription
access_token1The OIDC access token.
expires_in1An optional expiration duration (in milliseconds).

The "Version" column indicates the OIDC callback API versions for which the parameter is applicable.

Access Token

An OIDC access token (a signed JWT token).

Warning:

access_token is NOT directly validated by the driver.

Expiry Duration

An optional expiry duration (in milliseconds) for the access token.

Important:

An unset value is interpreted as an infinite expiry duration.

See also:

  • mongoc_oidc_callback_t <>
  • mongoc_oidc_callback_fn_t <>

Author

MongoDB, Inc

Info

Mar 04, 2026 2.2.3 libmongoc