mongoc_client_pool_set_oidc_callback - Man Page

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

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

Info

Mar 04, 2026 2.2.3 libmongoc