Skip to content

Commit f47c1a5

Browse files
authored
DOCSP-48720 Update non-MongoDB credentials (#150)
1 parent b153f30 commit f47c1a5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

source/security/auth-mechanisms/scram.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ The code examples on this page use the following placeholders:
4949
to a MongoDB Atlas cluster. To learn more about the ``+srv`` option, see
5050
:manual:`Connection String Formats </reference/connection-string/#connection-string-formats>`
5151
in the {+mdb-server+} manual.
52-
- ``<username>``: The MongoDB username of the user to authenticate.
53-
- ``<password>``: The MongoDB password of the user to authenticate.
52+
- ``<db_username>``: The MongoDB username of the user to authenticate.
53+
- ``<db_password>``: The MongoDB password of the user to authenticate.
5454
- ``<hostname>``: The network address of your MongoDB deployment.
5555
- ``<port>``: The port number of your MongoDB deployment. If you omit this parameter,
5656
the driver uses the default port number (``27017``). You don't need a port number
@@ -78,16 +78,16 @@ see the corresponding syntax:
7878

7979
.. code-block:: ruby
8080

81-
client = Mongo::Client.new('mongodb[+srv]://<username>:<password>@<hostname>[:<port>]/?authSource=<authentication_db>')
81+
client = Mongo::Client.new('mongodb[+srv]://<db_username>:<db_password>@<hostname>[:<port>]/?authSource=<authentication_db>')
8282

8383
.. tab:: Client Options
8484
:tabid: default-mongo-credential
8585

8686
.. code-block:: ruby
8787

8888
client = Mongo::Client.new('<hostname>',
89-
user: '<username>',
90-
password: '<password>')
89+
user: '<db_username>',
90+
password: '<db_password>')
9191

9292
API Documentation
9393
-----------------

0 commit comments

Comments
 (0)