MONGOC_OIDC_CREDENTIAL_NEW(3)
β¨ MONGOC_OIDC_CREDENTIAL_NEW π
okay so bestie, this is a page from libmongoc (that's the MongoDB C driver, iykyk) and it's about one tiny little function that makes you an OIDC credential. it's giving "small but mighty" fr fr π«Ά
πΈ SYNOPSIS πΈ
mongoc_oidc_credential_t *
mongoc_oidc_credential_new (const char *access_token)
so what this does is it creates a brand new mongoc_oidc_credential_t object β and that object stores a copy of the OIDC access token you hand it, with an infinite expiry duration. no cap, it literally never expires π
if an infinite expiry isn't the vibe and you actually want a finite expiry duration, that's a whole different function bestie β go use mongoc_oidc_credential_new_with_expires_in() instead. different tool for a different day β¨
β οΈ WARNING: access_token is NOT directly validated by the driver. likeβ¦ at all. the driver is not doing a vibe check on this thing. it just takes it. so make sure you know what you're passing in, okay? π
π PARAMETERS π
access_tokenβ an OIDC access token. it must not beNULL. that's the one rule. don't come at it withNULLπ
π¦ RETURNS π¦
you get back a shiny new mongoc_oidc_credential_t β¨ β and listen, you have to free it with mongoc_oidc_credential_destroy() when you're done with it. it's not gonna clean up after itself, main character energy doesn't extend to memory management π§
or, if you gave it an invalid argument, you get NULL back. that's the "not me, not today" response π
π SEE ALSO π
mongoc_oidc_credential_tβ the object this whole thing is about, go read up on it π
π AUTHOR π
MongoDB, Inc β yes, that MongoDB π
β COPYRIGHT β
2009-present, MongoDB, Inc.
and that's the whole page, bestie!! no crumbs left π this was libmongoc version 2.5.6, dated Oct 09, 2026 β go forth and authenticate responsibly, mwah πππ
π¦ 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