Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-2921

Authentication object should be 'password' and not 'pass'

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Duplicate
    • Affects Version/s: 4.0.0
    • Fix Version/s: None
    • Component/s: Shell
    • Labels:
      None

      Description

      These options https://github.com/mongodb/node-mongodb-native/blob/master/src/mongo_client.ts#L42-L47

      should not have 'pass' , instead it should be 'password' to be compatible with what the shell sends to the driver for authentication. Right now we can workaround / send both, but it's a quick fix. I've included a PR https://github.com/mongodb/node-mongodb-native/pull/2639

       

      For more context: https://mongodb.slack.com/archives/C0V8RU15L/p1606240947131600

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              anna.herlihy Anna Herlihy (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: