Integrated and simplified version of MongoDB authentication.