Skip to content

Commit b65d586

Browse files
authored
Clarify using commas in connection strings (#217)
* update details for connection strings * specify property * implement feedback
1 parent 627d6ec commit b65d586

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

source/fundamentals/enterprise-authentication.txt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,10 @@ see the corresponding syntax.
297297
The following code example shows how to specify Azure IMDS OIDC authentication.
298298
Replace the ``<percent-encoded audience>`` placeholder with the percent-encoded
299299
value of the ``audience`` parameter configured on your MongoDB deployment.
300+
301+
You cannot pass values containing the comma (``,``) character to the ``authMechanismProperties``
302+
option. You must specify values that contain commas in a ``MongoCredential`` object,
303+
as demonstrated in the :guilabel:`MongoCredential` tab.
300304

301305
.. code-block:: csharp
302306

@@ -346,7 +350,11 @@ see the corresponding syntax.
346350
The following code example shows how to specify GCP IMDS OIDC authentication as
347351
part of the authentication string.
348352
Replace the ``<audience>`` placeholder with the
349-
value of the ``audience`` parameter configured on your MongoDB deployment.
353+
value of the ``audience`` parameter configured on your MongoDB deployment.
354+
355+
You cannot pass values containing the comma (``,``) character to the ``authMechanismProperties``
356+
option. You must specify values that contain commas in a ``MongoCredential`` object,
357+
as demonstrated in the :guilabel:`MongoCredential` tab.
350358

351359
.. code-block:: csharp
352360

0 commit comments

Comments
 (0)