Accept username and password in MongoClient constructor

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 3.5
    • Affects Version/s: None
    • Component/s: API, Auth
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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__.

              Assignee:
              A. Jesse Jiryu Davis
              Reporter:
              Shane Harvey
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: