Skip to content

Commit 3aae239

Browse files
committed
DOCSP-48719: Update non-Mongo credential placeholders
1 parent f9fb449 commit 3aae239

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

source/security.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@ Windows
671671
.. code-block:: python
672672

673673
client = pymongo.MongoClient("mongodb://<hostname>:<port>",
674-
username="<db_username>",
674+
username="<username>",
675675
authMechanism="GSSAPI",
676676
password="<db_password>",
677677
authMechanismProperties="SERVICE_NAME:<authentication service name>,
@@ -698,7 +698,7 @@ Windows
698698
.. code-block:: python
699699

700700
client = pymongo.AsyncMongoClient("mongodb://<hostname>:<port>",
701-
username="<db_username>",
701+
username="<username>",
702702
authMechanism="GSSAPI",
703703
password="<db_password>",
704704
authMechanismProperties="SERVICE_NAME:<authentication service name>,
@@ -737,8 +737,8 @@ PLAIN SASL
737737
.. code-block:: python
738738

739739
client = pymongo.MongoClient("mongodb://<hostname>:<port>",
740-
username="<db_username>",
741-
password="<db_password>",
740+
username="<username>",
741+
password="<password>",
742742
authMechanism="PLAIN",
743743
tls=True)
744744

@@ -747,7 +747,7 @@ PLAIN SASL
747747

748748
.. code-block:: python
749749

750-
uri = ("mongodb://<db_username>:<db_password>@<hostname>:<port>/?"
750+
uri = ("mongodb://<username>:<password>@<hostname>:<port>/?"
751751
"&authMechanism=PLAIN"
752752
"&tls=true")
753753
client = pymongo.MongoClient(uri)
@@ -758,8 +758,8 @@ PLAIN SASL
758758
.. code-block:: python
759759

760760
client = pymongo.AsyncMongoClient("mongodb://<hostname>:<port>",
761-
username="<db_username>",
762-
password="<db_password>",
761+
username="<username>",
762+
password="<password>",
763763
authMechanism="PLAIN",
764764
tls=True)
765765

@@ -768,7 +768,7 @@ PLAIN SASL
768768

769769
.. code-block:: python
770770

771-
uri = ("mongodb://<db_username>:<db_password>@<hostname>:<port>/?"
771+
uri = ("mongodb://<username>:<password>@<hostname>:<port>/?"
772772
"&authMechanism=PLAIN"
773773
"&tls=true")
774774
client = pymongo.AsyncMongoClient(uri)

0 commit comments

Comments
 (0)