You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CDRIVER-5580 support embedded URI in connection string options (#1914)
* Delimit auth mechanism properties by comma first
* Add regression tests for URI and auth mech prop parsing
* Summarize NEWS entry for authentication-related credentials validation and errors
* `mongoc_server_description_host` changes the return type from `mongoc_host_list_t *` to `const mongoc_host_list_t *`.
11
11
* URI authentication credentials validation (only applicable during creation of a new `mongoc_uri_t` object from a connection string):
12
12
* The requirement that a username is non-empty when specified is now enforced regardless of authentication mechanism.
13
-
* `authMechanism` is now validated and returns a client error for invalid or unsupported values.
14
-
* `authSource` is now validated and returns a client error for invalid or unsupported values for the specified `authMechanism`.
15
13
* `authSource` is now correctly defaulted to `"$external"` for MONGODB-AWS (instead of the database name or `"admin"`).
16
-
* The requirement that a password is provided is now enforced when the authentication mechanism is specified for:
17
-
* PLAIN
18
-
* SCRAM-SHA-1
19
-
* SCRAM-SHA-256
20
-
* The requirement that neither or both a username and password is provided (optionally with a `AWS_SESSION_TOKEN`) is now enforced for MONGODB-AWS.
21
-
* `authMechanismProperties` is now prohibited (instead of ignored) when the authentication mechanism is specified for:
22
-
* PLAIN
23
-
* SCRAM-SHA-1
24
-
* SCRAM-SHA-256
25
-
* MONGODB-X509
26
-
* `authMechanismProperties` is now validated and returns a client error for invalid or unsupported fields when the authentication mechanism is specified for:
27
-
* GSSAPI: supported fields are SERVICE_NAME, CANONICALIZE_HOST_NAME, SERVICE_REALM, and SERVICE_HOST.
28
-
* MONGODB-AWS: supported fields are AWS_SESSION_TOKEN.
14
+
* `authMechanism` is now validated and returns a client error for invalid or unsupported values.
15
+
* Requirements for the inclusion, exclusion, and supported values of authentication-related URI components (e.g. username and password), options (e.g. `authSource`), and mechanism properties (e.g. `authMechanismProperties` and its key-value pairs) are now validated and return a client error when able for invalid or unsupported configurations according to the specified authentication mechanism (`authMechanism`).
16
+
* `authMechanismProperties` now correctly supports `':'` within property values.
17
+
* Old behavior: `authMechanismProperties=A:B,C:D:E,F:G` is parsed as `{'A': 'B', 'C': 'D:E,F:G'}`.
18
+
* New behavior: `authMechanismProperties=A:B,C:D:E,F:G` is parsed as `{'A': 'B': 'C': 'D:E', 'F': 'G'}`.
29
19
* Calling `mongoc_bulk_operation_execute` on the same `mongoc_bulk_operation_t` repeatedly is an error. Previously this was only discouraged in documentation.
0 commit comments