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

A mistake about authentication examples.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 3.5, 3.5.1
    • Fix Version/s: 3.6
    • Component/s: Documentation
    • Labels:
    • Environment:
      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

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: