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.
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
Centos 7
mongodb-compass 1.22.1
Possible Solution
Use Fill in connection fields individually screen and make sure to fill Authentication Database field.
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 thatauthentication_database
part is ignored inpaste 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 fillAuthentication Database
field.