Authenticate MongoDB connections