[COMPASS-7308] Compass uses invalid authMechanism=DEFAULT for username/password Created: 06/Oct/23  Updated: 22/Nov/23  Resolved: 22/Nov/23

Status: Closed
Project: Compass
Component/s: None
Affects Version/s: None
Fix Version/s: 1.40.2

Type: Bug Priority: Major - P3
Reporter: James Kovacs Assignee: Maurizio Casimirri
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

OS:
node.js / npm versions:
Additional info:


Story Points: 2
Documentation Changes: Not Needed
Sprint: Iteration Minmi, Iteration Nodosaurus, Iteration Pterodactyl

 Description   

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



 Comments   
Comment by Githook User [ 01/Nov/23 ]

Author:

{'name': 'Maurizio Casimirri', 'email': 'maurizio.cas@gmail.com', 'username': 'mcasimir'}

Message: feat: remove NONE and authMechanism=DEFAULT COMPASS-7308 (#4977)

  • wip: remove NONE and authMechanism=DEFAULT
  • address feedback
  • fix failing e2e tests
Comment by Githook User [ 30/Oct/23 ]

Author:

{'name': 'Maurizio Casimirri', 'email': 'maurizio.cas@gmail.com', 'username': 'mcasimir'}

Message: feat: remove NONE and authMechanism=DEFAULT COMPASS-7308 (#4977)

  • wip: remove NONE and authMechanism=DEFAULT
  • address feedback
  • fix failing e2e tests
Comment by Githook User [ 24/Oct/23 ]

Author:

{'name': 'Maurizio Casimirri', 'email': 'maurizio.cas@gmail.com', 'username': 'mcasimir'}

Message: feat: remove NONE and authMechanism=DEFAULT COMPASS-7308 (#4977)

  • wip: remove NONE and authMechanism=DEFAULT
  • address feedback
  • fix failing e2e tests
Comment by Githook User [ 24/Oct/23 ]

Author:

{'name': 'Maurizio Casimirri', 'email': 'maurizio.cas@gmail.com', 'username': 'mcasimir'}

Message: feat: remove NONE and authMechanism=DEFAULT COMPASS-7308 (#4977)

  • wip: remove NONE and authMechanism=DEFAULT
  • address feedback
  • fix failing e2e tests
Comment by Githook User [ 23/Oct/23 ]

Author:

{'name': 'Maurizio Casimirri', 'email': 'maurizio.cas@gmail.com', 'username': 'mcasimir'}

Message: Merge branch 'main' into COMPASS-7308
Branch: COMPASS-7308
https://github.com/mongodb-js/compass/commit/409d8ed670e71c8b6ef6b6692c722238d487ff66

Generated at Wed Feb 07 22:46:07 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.