1MONGOC_URI_SET_AUTH_MECHANISM(3)MongoDB C DriverMONGOC_URI_SET_AUTH_MECHANISM(3)
2
3
4
6 mongoc_uri_set_auth_mechanism - mongoc_uri_set_auth_mechanism()
7
9 bool
10 mongoc_uri_set_auth_mechanism (mongoc_uri_t *uri, const char *value);
11
13 · uri: A mongoc_uri_t.
14
15 · value: The new "authMechanism" value.
16
18 Sets the "authMechanism" URI option, such as "SCRAM-SHA-1" or "GSSAPI",
19 after the URI has been parsed from a 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.13.1 Jan 24, 2019 MONGOC_URI_SET_AUTH_MECHANISM(3)