@@ -64,10 +64,10 @@ password to authenticate to a server.
6464MongoDB supports the following SCRAM-based authentication mechanisms:
6565
6666- :ref:`SCRAM-SHA-256 <rust-auth-scramsha256>`: an authentication mechanism that
67- uses your username and password, encrypted with the ``SHA-256``
67+ uses your database username and password, encrypted with the ``SHA-256``
6868 algorithm
6969- :ref:`SCRAM-SHA-1 <rust-auth-scramsha1>`: an authentication mechanism that
70- uses your username and password, encrypted with the ``SHA-1``
70+ uses your database username and password, encrypted with the ``SHA-1``
7171 algorithm
7272
7373.. important:: Default Authentication Mechanism
@@ -84,8 +84,8 @@ MongoDB supports the following SCRAM-based authentication mechanisms:
8484 ``mechanism`` field when you instantiate your ``Credential`` struct.
8585 This example uses the following placeholders:
8686
87- - ``username ``: Your username
88- - ``password ``: Your password
87+ - ``db_username ``: Your database username
88+ - ``db_password ``: Your database password
8989 - ``db``: The authentication database associated with the user
9090
9191 .. literalinclude:: /includes/fundamentals/code-snippets/auth.rs
@@ -104,8 +104,8 @@ To specify the ``SCRAM-SHA-256`` authentication mechanism, set the
104104``AuthMechanism::ScramSha256``. This example specifies the
105105authentication mechanism by using the following placeholders:
106106
107- - ``username ``: Your username
108- - ``password ``: Your password
107+ - ``db_username ``: Your database username
108+ - ``db_password ``: Your database password
109109- ``db``: The authentication database associated with the user
110110
111111.. literalinclude:: /includes/fundamentals/code-snippets/auth.rs
@@ -124,8 +124,8 @@ To specify the ``SCRAM-SHA-1`` authentication mechanism, set the
124124``AuthMechanism::ScramSha1``. This example specifies the
125125authentication mechanism by using the following placeholders:
126126
127- - ``username ``: Your username
128- - ``password ``: Your password
127+ - ``db_username ``: Your database username
128+ - ``db_password ``: Your database password
129129- ``db``: The authentication database associated with the user
130130
131131.. literalinclude:: /includes/fundamentals/code-snippets/auth.rs
0 commit comments