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

A mistake about authentication examples.

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.6
    • Affects Version/s: 3.5, 3.5.1
    • Component/s: Docs
    • Environment:
      All.

      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.

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

              Created:
              Updated:
              Resolved: