@@ -64,10 +64,10 @@ password to authenticate to a server.
64
64
MongoDB supports the following SCRAM-based authentication mechanisms:
65
65
66
66
- :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``
68
68
algorithm
69
69
- :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``
71
71
algorithm
72
72
73
73
.. important:: Default Authentication Mechanism
@@ -84,8 +84,8 @@ MongoDB supports the following SCRAM-based authentication mechanisms:
84
84
``mechanism`` field when you instantiate your ``Credential`` struct.
85
85
This example uses the following placeholders:
86
86
87
- - ``username ``: Your username
88
- - ``password ``: Your password
87
+ - ``db_username ``: Your database username
88
+ - ``db_password ``: Your database password
89
89
- ``db``: The authentication database associated with the user
90
90
91
91
.. literalinclude:: /includes/fundamentals/code-snippets/auth.rs
@@ -104,8 +104,8 @@ To specify the ``SCRAM-SHA-256`` authentication mechanism, set the
104
104
``AuthMechanism::ScramSha256``. This example specifies the
105
105
authentication mechanism by using the following placeholders:
106
106
107
- - ``username ``: Your username
108
- - ``password ``: Your password
107
+ - ``db_username ``: Your database username
108
+ - ``db_password ``: Your database password
109
109
- ``db``: The authentication database associated with the user
110
110
111
111
.. literalinclude:: /includes/fundamentals/code-snippets/auth.rs
@@ -124,8 +124,8 @@ To specify the ``SCRAM-SHA-1`` authentication mechanism, set the
124
124
``AuthMechanism::ScramSha1``. This example specifies the
125
125
authentication mechanism by using the following placeholders:
126
126
127
- - ``username ``: Your username
128
- - ``password ``: Your password
127
+ - ``db_username ``: Your database username
128
+ - ``db_password ``: Your database password
129
129
- ``db``: The authentication database associated with the user
130
130
131
131
.. literalinclude:: /includes/fundamentals/code-snippets/auth.rs
0 commit comments