promised-mongo
promised-mongo copied to clipboard
authDb support
I tried connecting to a db ("called mydB") by using a authDb (called "admin") but I cannot establish a successfull connection. My connection string is the folllowing one:
mydb_adminuser:asecurepassword@localhost:20900/myDb?authSource=admin
This is the result which is outputed by db ping command:
{ [MongoError: auth failed]
name: 'MongoError',
message: 'auth failed',
ok: 0,
errmsg: 'auth failed',
code: 18 }
The authSource parameter is a defined standard in monodb core driver but somehow it doesn´t work in promised-mongo. The same connection string (with real credentials) works perfectly in mongoose.
Is there a fix for it? I'm also having this issue