dbcodeio / public

The Power of Databases, The Convenience of VS Code: All in One Place
13 stars 0 forks source link

MongoDB connection without credentials #70

Closed rahbari closed 1 day ago

rahbari commented 3 days ago

Can't create a MongoDB connection without username and password. My local server neither has nor needs a password.

Image

Error: authMechanism DEFAULT not supported


VSCode Version: 1.94.2 Extension Version: 1.3.7 OS: darwin Arch: arm64

mikeburgh commented 2 days ago

How did you config the mongo DB to not require a username and password but till be able to perform actions ?

In my testing I have been able to connect without them, but then any action (like listing databases) will fail cause the connection is not authenticated.

I just want to setup a test enviroment that matches yours to make sure I get it working without the login details properly.

rahbari commented 2 days ago

I installed MongoDB v8 using brew, by default it does not have username or password. Image in compass these settings are optional, and it works.

mikeburgh commented 2 days ago

Perfect.. Yes I saw they were optional, but I could not get a mongo install that set them as optional when I was trying in docker or via the various cloud providers.

Let me spin a brew install, make sure the extension works properly without the username (At the moment it connects, but I get the error about not authorized, figure that will change once I connect to the brew install) and then I will include the change in todays release and update this issue when it's released

mikeburgh commented 2 days ago

Version 1.3.10 is out and fixes this