1MONGOC_URI_SET_AUTH_SOURCE(3) libmongoc MONGOC_URI_SET_AUTH_SOURCE(3)
2
3
4
6 bool
7 mongoc_uri_set_auth_source (mongoc_uri_t *uri, const char *value);
8
10 • uri: A mongoc_uri_t.
11
12 • value: The new "authSource" value.
13
15 Sets the "authSource" URI option, after the URI has been parsed from a
16 string.
17
18 Updates the option in-place if already set, otherwise appends it to the
19 URI's bson_t of options.
20
22 Returns false if the option cannot be set, for example if value is not
23 valid UTF-8.
24
26 MongoDB, Inc
27
29 2017-present, MongoDB, Inc
30
31
32
33
341.25.1 Nov 08, 2023 MONGOC_URI_SET_AUTH_SOURCE(3)