MongoDB authentication
In this post, i try to show one of the ways of using authentication on standalone versions and replica set of MongoDb
STANDALONE INSTANCE
Connect to mongo shell on the mongodb instance and run.
use admin;
db.createUser(
{
user: "adminUser",
pwd: "adminPassword",
roles: [
{ role: "userAdminAnyDatabase&