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

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 3.7.1, 3.8
    • Affects Version/s: 3.7
    • Component/s: Auth
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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 Hackett
              Reporter:
              Shuo Li
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: