MONGOC_OIDC_CREDENTIAL_T(3)

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

πŸ’… MONGOC_OIDC_CREDENTIAL_T(3) πŸŽ€

okay so real quick bestie β€” this is a page from libmongoc, and today's main character is mongoc_oidc_credential_t. it's giving "small struct, big responsibility" and honestly? i'm obsessed. let's get into it. ✨


✨ SYNOPSIS ✨

typedef struct _mongoc_oidc_credential_t mongoc_oidc_credential_t;

so like. what even is this thing? πŸ¦‹ it represents the return value of a mongoc_oidc_callback_fn_t. that's it. that's the whole vibe.

and the way it works is lowkey iconic: this value gets returned by the mongoc_oidc_callback_fn_t that's stored inside an mongoc_oidc_callback_t object, and that happens when the callback gets invoked by an associated mongoc_client_t or mongoc_client_pool_t object. so it's a whole little ecosystem, yk? 🫢


🌸 RETURN VALUES 🌸

here's the list of currently supported return values, no gatekeeping:

  • access_token β€” Version 1 β€” the OIDC access token. πŸ’–
  • expires_in β€” Version 1 β€” an optional expiration duration (in milliseconds). ⭐

and the "Version" column (yes the one in the original table, rip table, you ate tho πŸ’€) tells you which OIDC callback API versions the parameter is applicable to.


πŸ”₯ Access Token

an OIDC access token β€” which is a signed JWT token. πŸ‘‘

WARNING: access_token is NOT directly validated by the driver. not me finding out the driver just trusts you like that 😭 fr fr, it does not check it. that's on you.

🧚 Expiry Duration

an optional expiry duration (in milliseconds) for the access token. simple as that. 🌈

IMPORTANT: an unset value is interpreted as an infinite expiry duration. so like... unset = forever = no cap, it never expires. set it if you want it to actually end, bestie. πŸ’…

πŸ’œ SEE ALSO:

  • mongoc_oidc_callback_t
  • mongoc_oidc_callback_fn_t

go read those next, iykyk πŸ¦‹


πŸ‘‘ AUTHOR

MongoDB, Inc

2009-present, MongoDB, Inc.


and that's the whole page, periodt. πŸ“ this lil masterpiece is libmongoc 2.5.6, dated Oct 09, 2026 β€” slay, mwah, bye bestie πŸ’–βœ¨

πŸ“¦ where this page comes from