MONGOC_CLIENT_..._OIDC_CALLBACK(3)

πŸ“¦
version 2.5.6 Β· 3 versions
, in epel 10

πŸŽ€ 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 β€” a mongoc_client_pool_t. your pool. the whole point πŸ‘‘
  • callback β€” a mongoc_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_t
  • mongoc_oidc_callback_params_t

🌈 AUTHOR 🌈

MongoDB, Inc β€” the whole team, periodt πŸ’œ

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