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