Skip to content

Commit f1075b8

Browse files
authored
DOCSP-48751: Disallow comma in authMechanismProperties (#106)
* DOCSP-48751: Disallow comma in authMechanismProperties * fix * typo * EC feedback * indent
1 parent 32deb74 commit f1075b8

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.. important::
2+
3+
You cannot specify a property value containing the comma (``,``) character
4+
as a ``authMechanismProperties`` connection string option, even when the
5+
comma character is percent-encoded. To specify an ``authMechanismProperties``
6+
property value that contains a comma, set the option by using the
7+
`mongoc_uri_set_mechanism_properties() <{+api-libmongoc+}/mongoc_uri_set_mechanism_properties.html>`__
8+
method.

source/security/authentication.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,8 @@ You can also include an AWS session token by passing it into the
168168
:start-after: // start-aws-connection-uri-session
169169
:end-before: // end-aws-connection-uri-session
170170

171+
.. include:: /includes/security/auth-properties-commas.rst
172+
171173
.. _c-mongo-aws-environment:
172174

173175
Environment Variables

source/security/enterprise-authentication.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ Complete the following steps to authenticate with GSSAPI:
9292
You must replace the ``@`` symbol in the principal with ``%40``, as shown
9393
in the preceding example.
9494

95+
.. include:: /includes/security/auth-properties-commas.rst
96+
9597
.. _c-plain:
9698

9799
PLAIN SASL

0 commit comments

Comments
 (0)