Starting in version 4.0, MongoDB removes support for the deprecated
MongoDB Challenge-Response (
MONGODB-CR) authentication mechanism.
MongoDB supports the following authentication mechanisms:
In addition, MongoDB Enterprise provides integration with a number of external authentication mechanisms, including Kerberos and LDAP. See Enterprise Authentication Mechanisms for the additional authentication mechanisms supported by MongoDB Enterprise.
Default Authentication Mechanism¶
As of MongoDB 3.0, Salted Challenge Response Authentication Mechanism (SCRAM) is the default authentication mechanism for MongoDB.