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

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

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 4.0.0
    • Component/s: Shell
    • None

      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

       

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

              Created:
              Updated:
              Resolved: