MONGOC_OIDC_CALLBACK_FN_T(3)

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

πŸ’… MONGOC_OIDC_CALLBACK_FN_T(3) β€” a libmongoc moment

okay bestie, so this one is a manual page from libmongoc and it is literally just about one typedef. one. and honestly? she's serving function-pointer realness and we respect it. let's get into it ✨


✨ SYNOPSIS ✨

typedef mongoc_oidc_credential_t *(*mongoc_oidc_callback_fn_t) (mongoc_oidc_callback_params_t *params);

so this is the type of the function pointer that gets stored by mongoc_oidc_callback_t. that's the whole vibe. it's a callback signature, it points at a function, and that function is expected to hand back a credential. no cap 🫢


πŸŽ€ PARAMETERS πŸŽ€

  • params β€” a mongoc_oidc_callback_params_t object, and she's an in/out situation: she carries the in/out parameters of a mongoc_oidc_callback_t. both directions, main character energy πŸ’…

πŸ”₯ RETURNS πŸ”₯

so your function gives back a mongoc_oidc_credential_t object β€” one you made with mongoc_oidc_credential_new() β€” or NULL, which is the signal for an error or a timeout. two very different moods, same NULL. 😭

the rules, and these are MUSTs so like, actually listen:

  • the function MUST return a mongoc_oidc_credential_t object to indicate success πŸ’–
  • the function MUST return NULL to indicate an error
  • the function MUST call mongoc_oidc_callback_params_cancel_with_timeout() before returning NULL, if what actually happened was a timeout and not an error. like β€” tell the truth about which one it was, bestie πŸ™ˆ
⚠️ heads up: the cancel_with_timeout out parameter gets ignored if the return value is not NULL. so if you're returning a real credential, that param is just standing there, unread. πŸ’€

πŸ¦‹ SEE ALSO πŸ¦‹

  • mongoc_oidc_callback_t
  • mongoc_oidc_callback_params_t
  • mongoc_oidc_credential_t

go read those next, iykyk 🌸


πŸ‘‘ AUTHOR πŸ‘‘

MongoDB, Inc β€” icons only ⭐

2009-present, MongoDB, Inc. β€” periodt.


and that's the whole page, bestie! πŸŽ€ this little beauty came to you from libmongoc version 2.5.6, dated Oct 09, 2026, and she's titled MONGOC_OIDC_CALLBACK_FN_T(3) β€” mwah, slay, go write that callback πŸ§šπŸ’œ

πŸ“¦ where this page comes from