A mistake about authentication examples.

XMLWordPrintableJSON

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

      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
            Reporter:
            Jintao Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: