Hi,
I am trying to setup authentication and authorization using MongoDB-CR methods in my mongodb instance and I have couple of queries regarding that:
1. Where should I add all the users: in the admin database and provide appropriate rules or in the indvidual databases which they access?
or it would be a combination of both? What are some best practices regarding these?
2. My understanding is that when I connect using mongodb drivers, I will always have to specify user, name, and password for complete authentication and a user is authenticated to only the database which it is part of? Is this correct?
3. Say I am using using multiple db's in my application, Do I have to authenticate each time I access them or The authentication information is cached in the MongoClient somewhere? How does this work?
Thanks for all the help,
Abhi