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

Calling Database.authenticate more than once with the same credentials results in OperationFailure

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.7.1, 3.8
    • Affects Version/s: 3.7
    • Component/s: Auth
    • Labels:
      None

      PYTHON-1273 - Cache SCRAM ClientKey and ServerKey added a new field in auth cache, which breaks it equality. 

      In mongo_client.py

      1. Nothing to do if we already have these credentials.
        if credentials == all_credentials[source]:

      Which always raises the exception "Another user is already authenticated to this database"

            Assignee:
            bernie@mongodb.com Bernie Hackett
            Reporter:
            shuoli84@gmail.com Shuo Li
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: