Docs Home → Develop Applications → MongoDB Drivers → Node.js
Authentication
This version of the documentation is archived and no longer supported. View the current documentation to learn how to upgrade your version of the MongoDB Node.js driver.
Overview
These guides show you how to authenticate to a MongoDB instance using the Node.js driver.
The Authentication Mechanisms guide contains sample connection code using each authentication mechanism supported in the MongoDB Community Edition which includes:
DEFAULT
SCRAM-SHA-256
SCRAM-SHA-1
MONGODB-CR
MONGODB-AWS
X.509
The Enterprise Authentication Mechanisms guide contains sample connection code using authentication mechanisms available only in MongoDB Enterprise Edition which includes:
Kerberos (GSSAPI/SSPI)
LDAP (PLAIN)
Note
For instructions on MongoDB driver installation and deployment setup, see our Connect to MongoDB guide. Select your MongoDB deployment type and the Node.js client.