mongodb-js / compass

The GUI for MongoDB.
https://mongodb.com/compass
Other
1.15k stars 176 forks source link

`Authentication Database` is ignored when using connection string #2037

Closed endertunc closed 4 years ago

endertunc commented 4 years ago

Current Behavior

I have connection string to connect mongodb cluster with basic auth and authentication database which I tested with mongo (cli) and Studio 3T that works.

I found that authentication database part in connection string is ignored and I was keep getting auth failed error.

This is the page where I found the connection string specs: https://docs.mongodb.com/manual/reference/connection-string/

Giving connection string mongodb://username:password@mongodb0.example.com:27017/authentication_database what I experienced is that authentication_database part is ignored in paste connection string screen.

Expected Behavior/Code

Given connection string with basic auth and authentication database, mongodb-compass should connect successfully.

Environment

Possible Solution

Use Fill in connection fields individually screen and make sure to fill Authentication Database field.

endertunc commented 4 years ago

I found that this is the wrong repository. I am closing the issue.