1MONGOC_URI_SET_AUTH_SOURCE(3) MongoDB C Driver 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.14.0 Feb 22, 2019 MONGOC_URI_SET_AUTH_SOURCE(3)