File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
source/security/auth-mechanisms Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -49,8 +49,8 @@ The code examples on this page use the following placeholders:
49
49
to a MongoDB Atlas cluster. To learn more about the ``+srv`` option, see
50
50
:manual:`Connection String Formats </reference/connection-string/#connection-string-formats>`
51
51
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.
54
54
- ``<hostname>``: The network address of your MongoDB deployment.
55
55
- ``<port>``: The port number of your MongoDB deployment. If you omit this parameter,
56
56
the driver uses the default port number (``27017``). You don't need a port number
@@ -78,16 +78,16 @@ see the corresponding syntax:
78
78
79
79
.. code-block:: ruby
80
80
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>')
82
82
83
83
.. tab:: Client Options
84
84
:tabid: default-mongo-credential
85
85
86
86
.. code-block:: ruby
87
87
88
88
client = Mongo::Client.new('<hostname>',
89
- user: '<username >',
90
- password: '<password >')
89
+ user: '<db_username >',
90
+ password: '<db_password >')
91
91
92
92
API Documentation
93
93
-----------------
You can’t perform that action at this time.
0 commit comments