Currently, the only way to pass a username and password to a MongoClient is through a MongoDB URI. In order to deprecate Database.authenticate (PYTHON-1313) we should add username and password arguments to the MongoClient constructor. This will allow users to create an authenticated client without needing to create a URI first.
We need to make sure these parameters DO NOT show up in MongoClient.__repr__.
- is depended on by
-
PYTHON-1313 Deprecate Database.authenticate and Database.logout
- Closed