@@ -14,7 +14,7 @@ Overview
1414--------
1515
1616In this guide, we show you how to authenticate with MongoDB using each
17- **authentication mechanism** available in the MongoDB Community Edition.
17+ **authentication mechanism** available in MongoDB Community Edition.
1818Authentication mechanisms are processes by which the driver and server
1919confirm identity and establish trust to ensure security.
2020
@@ -110,15 +110,15 @@ see the :manual:`SCRAM </core/security-scram/>` section of the server manual.
110110
111111``SCRAM-SHA-256`` is a salted challenge-response authentication mechanism
112112(SCRAM) that uses your username and password, encrypted with the ``SHA-256``
113- algorithm to authenticate your user.
113+ algorithm, to authenticate your user.
114114
115115The following code snippets show how to specify the authentication mechanism,
116116using the following placeholders:
117117
118- * ``username`` - your MongoDB username
119- * ``password`` - your MongoDB user's password
120- * ``hostname`` - network address of your MongoDB server, accessible by your client
121- * ``port`` - port number of your MongoDB server
118+ * ``username`` - your MongoDB username.
119+ * ``password`` - your MongoDB user's password.
120+ * ``hostname`` - network address of your MongoDB server, accessible by your client.
121+ * ``port`` - port number of your MongoDB server.
122122* ``authenticationDb`` - MongoDB database that contains your user's
123123 authentication data. If you omit this parameter, the driver uses the
124124 default value ``admin``.
@@ -161,16 +161,16 @@ mechanism:
161161 3.0, 3.2, 3.4, and 3.6.
162162
163163``SCRAM-SHA-1`` is a salted challenge-response mechanism (SCRAM) that uses your
164- username and password, encrypted with the ``SHA-1`` algorithm to authenticate
164+ username and password, encrypted with the ``SHA-1`` algorithm, to authenticate
165165your user.
166166
167167The following code snippets show how to specify the authentication mechanism,
168168using the following placeholders:
169169
170- * ``username`` - your MongoDB username
171- * ``password`` - your MongoDB user's password
172- * ``hostname`` - network address of your MongoDB server, accessible by your client
173- * ``port`` - port number of your MongoDB server
170+ * ``username`` - your MongoDB username.
171+ * ``password`` - your MongoDB user's password.
172+ * ``hostname`` - network address of your MongoDB server, accessible by your client.
173+ * ``port`` - port number of your MongoDB server.
174174* ``authenticationDb`` - MongoDB database that contains your user's
175175 authentication data. If you omit this parameter, the driver uses the
176176 default value ``admin``.
@@ -215,7 +215,7 @@ mechanism was deprecated starting in MongoDB 3.6 and is no longer
215215supported as of MongoDB 4.0.
216216
217217You cannot specify this method explicitly; refer to the fallback provided
218- by the :ref:`Default authentication mechanism <default-auth-mechanism>` to
218+ by the :ref:`default authentication mechanism <default-auth-mechanism>` to
219219connect using ``MONGODB-CR``.
220220
221221.. _mongodb-aws-auth-mechanism:
@@ -234,14 +234,14 @@ user.
234234The following code snippets show how to specify the authentication mechanism,
235235using the following placeholders:
236236
237- * ``username`` - value of your ``AWS_ACCESS_KEY_ID``
238- * ``password`` - value your ``AWS_SECRET_ACCESS_KEY``
239- * ``hostname`` - network address of your MongoDB server, accessible by your client
240- * ``port`` - port number of your MongoDB server
237+ * ``username`` - value of your ``AWS_ACCESS_KEY_ID``.
238+ * ``password`` - value of your ``AWS_SECRET_ACCESS_KEY``.
239+ * ``hostname`` - network address of your MongoDB server, accessible by your client.
240+ * ``port`` - port number of your MongoDB server.
241241* ``authenticationDb`` - MongoDB database that contains your user's
242242 authentication data. If you omit this parameter, the driver uses the
243243 default value ``admin``.
244- * ``awsSessionToken`` - value of your ``AWS_SESSION_TOKEN`` *(optional)*
244+ * ``awsSessionToken`` - value of your ``AWS_SESSION_TOKEN``. *(optional)*
245245
246246Select the :guilabel:`Connection String` or the :guilabel:`MongoCredential`
247247tab below for instructions and sample code for specifying this authentication
@@ -329,8 +329,8 @@ the subject name of the client certificate.
329329The following code snippets show how to specify the authentication mechanism,
330330using the following placeholders:
331331
332- * ``hostname`` - network address of your MongoDB server, accessible by your client
333- * ``port`` - port number of your MongoDB server
332+ * ``hostname`` - network address of your MongoDB server, accessible by your client.
333+ * ``port`` - port number of your MongoDB server.
334334* ``authenticationDb`` - MongoDB database that contains your user's
335335 authentication data. If you omit this parameter, the driver uses the
336336 default value ``admin``.
@@ -346,7 +346,7 @@ mechanism:
346346
347347 To specify the ``X.509`` authentication mechanism using a connection
348348 string, assign the ``authMechanism`` parameter the value ``MONGODB-X509``
349- value to the ``authMechanism`` and enable TLS by assigning the ``tls``
349+ and enable TLS by assigning the ``tls``
350350 parameter a ``true`` value. Your code to instantiate a ``MongoClient``
351351 should look something like this:
352352
0 commit comments