MONGOC_URI_GET_AUTH_SOURCE(3)
π MONGOC_URI_GET_AUTH_SOURCE(3) π
okay so bestie, welcome to the <libmongoc> manual, page MONGOC_URI_GET_AUTH_SOURCE(3) β yes the name is a whole mouthful, we know, but it's iconic and we're gonna get through it together π«Ά
β¨ SYNOPSIS β¨
const char *
mongoc_uri_get_auth_source (const mongoc_uri_t *uri);
that's it. that's the whole vibe. one function, no cap π
π PARAMETERS π
uriβ amongoc_uri_t. literally just the URI object, hand it over and let the function do its thing π¦
πΈ DESCRIPTION πΈ
so what does it actually do? it fetches the authSource parameter of a URI β but only if you actually provided one. like, if it's in there, it's giving found. if it's not, well... read the next section bestie π
β RETURNS β
it gives you back a string π β and lowkey this is the important part β that string should not be modified or freed if the authSource parameter is provided. do not touch it, do not free it, do not come for it, it is not yours to manage. πββοΈ
but if the authSource parameter was not provided? you get NULL. that's the whole deal, no cap.
π AUTHOR π
MongoDB, Inc β the main characters who wrote this π§
π COPYRIGHT π
2009-present, MongoDB, Inc. β slay, they've been at it since 2009, that's commitment fr fr π
and that's the page, bestie! this was libmongoc version 2.5.6, dated Oct 09, 2026, and you absolutely ate that read π
β¨π
π¦ 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