MONGOC_CLIENT_POOL_SET_OIDC_CALLBACK(3)

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.