mongoc_client_pool_set_oidc_callback()#

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.