MONGOC_CLIENT_..._OIDC_CALLBACK(3)
π MONGOC_CLIENT_..._OIDC_CALLBACK(3) π
okay bestie, welcome to the libmongoc manual β yes that libmongoc, the C driver one π this page is all about registering your OIDC callback on a client pool, and it's short but it matters, so let's go πΈ
β¨ SYNOPSIS β¨
bool
mongoc_client_pool_set_oidc_callback(mongoc_client_pool_t *pool,
const mongoc_oidc_callback_t *callback);
π DESCRIPTION π
so basically this function registers a callback for the MONGODB-OIDC authentication mechanism π¦ that's the whole vibe. you hand it your pool and your callback and it wires them up. iconic behavior honestly β¨
π«Ά PARAMETERS π«Ά
poolβ amongoc_client_pool_t. your pool. the whole point πcallbackβ amongoc_oidc_callback_t. the callback you want registered, obviously π
β RETURNS β
returns true on success π returns false and logs on error π (yes, it logs β check your logs, bestie, the answer is in there)
π₯ THREAD SAFETY π₯
okay this is the part where you listen π
this function can only be called once on a pool, and it must be called before the first call to mongoc_client_pool_pop().
no cap. once. before the first pop. that's the rule and she is not flexible π
π SEE ALSO
mongoc_client_set_oidc_callback()β for setting a callback on a single-threaded client, if that's more your situation π§mongoc_oidc_callback_tmongoc_oidc_callback_params_t
π AUTHOR π
MongoDB, Inc β the whole team, periodt π
π COPYRIGHT π
2009-present, MongoDB, Inc. π
and that's the whole page, bestie!! mwah π this beauty is from libmongoc version 2.5.6, dated Oct 09, 202β¦ (the footer got a lil cut off by the page edge, we don't gatekeep, we just report π«Ά) β go register that callback before you pop anything, ily, bye!! πΈππ¦
π¦ where this page comes from
- epel 10: mongo-c-driver-devel 2.5.6-1.el10_3 Β· Apache-2.0 AND ISC AND MIT AND Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms