To enable user authentication in
MongoDB start MongoDB with --auth option
MongoDB requires all users to authenticate themselves. There are many authentication mechanism:
db.auth() method provide authenticationKerberos Authentication mechanism system SCRAM-SHA-1