User Store
Store, retive and authenticate users.
Also maintain sessions
Initial Setup
use userstore
db.createUser(
{
user: "dbuser",
pwd: "password",
roles: [ { role: "readWrite", db: "userstore" } ]
}
)
Next exit the mongo
session and connect with the auth credntials.
mongo -u "dbuser" -p "password" --authenticationDatabase "userstore"
This would allow to create and update collections in the userstore
database.