MONGOC_CLIENT_SET_OIDC_CALLBACK(3)

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

πŸ’… mongoc_client_set_oidc_callback πŸ’…

okay so bestie, we're in libmongoc land (that's the MongoDB C driver, mwah πŸ’–) and this little icon right here is your one-way ticket to registering a callback for the MONGODB-OIDC authentication mechanism. that's it, that's the whole vibe. no cap.


✨ SYNOPSIS ✨

bool
mongoc_client_set_oidc_callback(mongoc_client_t *client,
                                const mongoc_oidc_callback_t *callback);

register a callback for the MONGODB-OIDC authentication mechanism. slay. periodt. πŸ”₯


🫢 PARAMETERS 🫢

  • client β€” a mongoc_client_t. your main character client, the one you're handing the callback to πŸ’β€β™€οΈ
  • callback β€” a mongoc_oidc_callback_t. the actual callback. the moment. the icon. the legend. πŸ‘‘

🌈 RETURNS 🌈

returns true on success β€” we love a happy ending πŸ’–.

returns false and logs on error β€” so if the vibe check fails, check your logs, because it will be in there 😭.

ngl, error case just means "false + it gets logged", so don't be out here ignoring your log output, bestie.

πŸ‘€ SEE ALSO πŸ‘€

  • mongoc_client_pool_set_oidc_callback() β€” for setting a callback on a pooled client. iykyk, pool girlies stay winning πŸ¦‹
  • mongoc_oidc_callback_t β€” the type itself, go read it, it's giving essential ✨
  • mongoc_oidc_callback_params_t β€” the params buddy of the above, also required reading fr fr πŸ“–

πŸŽ€ AUTHOR πŸŽ€

MongoDB, Inc β€” our beloved corporate fairy godmother 🧚

2009-present, MongoDB, Inc. β€” all the legal sparkle, preserved exactly, no notes πŸ’…


alright, cute sign-off time 🌸: this page is from libmongoc 2.5.6, and the footer date got itself clipped mid-word in the source, so it literally reads Oct 09, 202 β€” tragic, i know 😭 β€” but that's the whole footer, and we're keeping it exactly like that. bye bestie! πŸ’œ

πŸ“¦ where this page comes from