Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-7308

Compass uses invalid authMechanism=DEFAULT for username/password

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.40.2
    • Affects Version/s: None
    • Component/s: None
    • None
    • Environment:
      OS:
      node.js / npm versions:
      Additional info:
    • 2
    • Iteration Minmi, Iteration Nodosaurus, Iteration Pterodactyl
    • Not Needed

      Problem Statement/Rationale

      Compass adds authMechanism=DEFAULT to the connection string when username/password auth is selected under advanced connection options. According to the Auth Spec, authMechanism should be omitted if default authMechanism rules are desired. A user submitted a PR for the .NET/C# Driver because it is throwing an exception with the connection string copied from Compass.

      Steps to Reproduce


      1. Open a new Compass window.
      2. Expand Advanced Connection Options.
      3. Select the Authentication tab.
      4. Choose Username/Password.

      Expected Results

      No authMechanism URI option should be present in the connection string.

      Actual Results

      authMechanism=DEFAULT is added to the connection string.

      Additional Notes

      PR submitted for the .NET/C# Driver: https://github.com/mongodb/mongo-csharp-driver/pull/1191

            Assignee:
            maurizio.casimirri@mongodb.com Maurizio Casimirri
            Reporter:
            james.kovacs@mongodb.com James Kovacs
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: