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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 3.7
    • 3.7.1, 3.8
    • Auth
    • None

    Description

      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"

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: