Scroll to navigation

MONGOC_OIDC_CREDENTIAL_T(3) libmongoc MONGOC_OIDC_CREDENTIAL_T(3)

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:

Value Versions Description
access_token 1 The OIDC access token.
expires_in 1 An 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

COPYRIGHT

2009-present, MongoDB, Inc.

October 8, 2025 2.1.2