Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-1327

Accept username and password in MongoClient constructor

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.5
    • Affects Version/s: None
    • Component/s: API, Auth
    • 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:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: