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:
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- - ``<db_username >``: The MongoDB username of the user to authenticate.
53- - ``<db_password >``: The MongoDB password of the user to authenticate.
52+ - ``<username >``: The MongoDB username of the user to authenticate.
53+ - ``<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]://<db_username >:<db_password >@<hostname>[:<port>]/?authSource=<authentication_db>')
81+ client = Mongo::Client.new('mongodb[+srv]://<username >:<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: '<db_username >',
90- password: '<db_password >')
89+ user: '<username >',
90+ password: '<password >')
9191
9292API Documentation
9393-----------------
You can’t perform that action at this time.
0 commit comments