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

A mistake about authentication examples.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 3.5, 3.5.1
    • 3.6
    • Docs
    • All.

    Description

      http://api.mongodb.com/python/current/examples/authentication.html#scram-sha-1-rfc-5802

      >>> from pymongo import MongoClient
      >>> client = MongoClient('example.com',
      ...                      user='user',
      ...                      password='password',
      ...                      authSource='the_database',
      ...                      authMechanism='SCRAM-SHA-1')
      

      The examples about authentication has wrong keywords. The keyword should be username rather than user.

      Attachments

        Issue Links

          Activity

            People

              shane.harvey@mongodb.com Shane Harvey
              zhangjintao9020@gmail.com Jintao Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: