Skip to content

Commit fc4211c

Browse files
authored
DOCSP-48719: Update non-Mongo credential placeholders (#240)
1 parent f9fb449 commit fc4211c

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

source/security.txt

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

673673
client = pymongo.MongoClient("mongodb://<hostname>:<port>",
674-
username="<db_username>",
674+
username="<username>",
675675
authMechanism="GSSAPI",
676-
password="<db_password>",
676+
password="<password>",
677677
authMechanismProperties="SERVICE_NAME:<authentication service name>,
678678
CANONICALIZE_HOST_NAME:true,
679679
SERVICE_REALM:<service realm>")
@@ -698,9 +698,9 @@ Windows
698698
.. code-block:: python
699699

700700
client = pymongo.AsyncMongoClient("mongodb://<hostname>:<port>",
701-
username="<db_username>",
701+
username="<username>",
702702
authMechanism="GSSAPI",
703-
password="<db_password>",
703+
password="<password>",
704704
authMechanismProperties="SERVICE_NAME:<authentication service name>,
705705
CANONICALIZE_HOST_NAME:true,
706706
SERVICE_REALM:<service realm>")
@@ -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)