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

Accept username and password in MongoClient constructor

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 3.5
    • API, Auth
    • None

    Description

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

      Attachments

        Issue Links

          Activity

            People

              jesse@mongodb.com A. Jesse Jiryu Davis
              shane.harvey@mongodb.com Shane Harvey
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: