Enable Username and Password Authentication for your WAP Project
Overview
WAP enables you to configure the Authentication Mechanisms that all clients, including the WAP Agents, use to connect to your MongoDB deployments.
MongoDB users can use usernames and passwords to authenticate themselves against a MongoDB database.
MongoDB Version | Default authentication mechanism |
---|---|
MongoDB 4.0 and later | Salted Challenge Response Authentication Mechanism (SCRAM) using the SHA-1 and SHA-256 hashing algorithms (SCRAM-SHA-1 and SCRAM-SHA-256 ). |
SCRAM-SHA-1 and SCRAM-SHA-256
SCRAM-SHA-1 and SCRAM-SHA-256are IETF standards that define best practice methods for implementation of challenge-response mechanisms for authenticating users with passwords.
SCRAM-SHA-1
and SCRAM-SHA-256
verify supplied user credentials using the user's name, password and authentication database. The authentication database is the database where the user was created.
Considerations
This tutorial describes how to enable Username and Password authentication for your WAP MongoDB deployment.
Procedure
This procedure describes how to configure and enable username and password authentication when using Automation.
Enable Password Authentication
-
Click MongoDB in the left navigation bar
-
Select the Cluster Name you want to configure.
-
Click Safety Management
-
Click Auth
-
Click Authentication management,
-
Select Account and password and CA certificate for authLevel
-
Finally click Confirm
Enable password authentication. If there is no user, you need to create a user Please refer to:ManageMongoDBUsersandRoles