Provided by: libmongoc-doc_2.2.1-1_all 

SYNOPSIS
bool
mongoc_client_pool_set_oidc_callback(mongoc_client_pool_t *pool,
const mongoc_oidc_callback_t *callback);
Register a callback for the MONGODB-OIDC authentication mechanism.
PARAMETERS
• pool: A mongoc_client_pool_t <>.
• callback: A mongoc_oidc_callback_t <>.
RETURNS
Returns true on success. Returns false and logs on error.
THREAD SAFETY
This function can only be called once on a pool, and must be called before the first call to
mongoc_client_pool_pop() <>.
See also:
mongoc_client_set_oidc_callback() <> for setting a callback on a single-threaded client.
mongoc_oidc_callback_t <>
mongoc_oidc_callback_params_t <>
Author
MongoDB, Inc
Copyright
2009-present, MongoDB, Inc.
2.2.1 Dec 11, 2025 MONGOC_CLIENT_POOL_SET_OIDC_CALLBACK(3)