You can configure username and password, X.509, and LDAP authentication types to access MongoDB.
Before you configure the connection properties, ensure that you have a MongoDB user account with admin privileges. You also need to copy the host name of the primary node in MongoDB and keep the authentication details handy based on the authentication type that you want to use.
Username and password
To connect to MongoDB using username and password authentication, you need the MongoDB account user name, password, and database name.
Get the required details from your MongoDB account to which you want to connect.