Skip to content

Commit 1c2c570

Browse files
DOCS-15627 Noted SCRAM-SHA-256 as default user auth mechanism (#274)
* Noted SCRAM-SHA-256 as default user auth mechanism * Rebuild * Rebuild * Clarified SCRAM-SHA-256 vs SCRAM-SHA-1 defaults * Clarified SCRAM-SHA-256 vs SCRAM-SHA-1 defaults * Forgot a colon * Clarified SCRAM-SHA-256 vs SCRAM-SHA-1 defaults * Removed note styling * External review feedback
1 parent 85f0f5f commit 1c2c570

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

source/reference/options.txt

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -386,20 +386,11 @@ Authentication Options
386386

387387
.. option:: --authenticationMechanism <name>
388388

389-
*Default*: SCRAM-SHA-1
390-
391389
Specifies the authentication mechanism the |mdb-shell| uses to
392-
authenticate to the :binary:`~bin.mongod` or :binary:`~bin.mongos`.
393-
394-
.. note::
395-
396-
Starting in version 4.0:
397-
398-
- MongoDB removes support for the deprecated MongoDB
399-
Challenge-Response (``MONGODB-CR``) authentication mechanism.
400-
401-
- MongoDB adds support for SCRAM mechanism using the SHA-256 hash
402-
function (``SCRAM-SHA-256``).
390+
authenticate to the :binary:`~bin.mongod` or :binary:`~bin.mongos`.
391+
If you don't specify an ``authenticationMechanism`` but provide user
392+
credentials, the MongoDB Shell and drivers attempt to use
393+
SCRAM-SHA-256. If this fails, they fall back to SCRAM-SHA-1.
403394

404395
.. list-table::
405396
:header-rows: 1

0 commit comments

Comments
 (0)