mongo-sync
mongo-sync copied to clipboard
Mongo auth
Authentication should be supported. credentials can be split from the server if you enter server address like username:password@server
I think it should be as simple as adding the line below here.
uri_decode_auth: true,
Can you test and send a pull request if it works?
Sure, I will test it this evening and make the PR.
Hi Oleg,
It wasn't that simple after all, I tried 2 different methods of connecting to the database use username and password and they both didn't work. One of them did connect to the server but gave me an error about permissions to query the database.
When I use the native driver for mongo both do work, and I am able to query.
I am a bit confused at the moment and will look further into the problem to provide a solid solution.