promised-mongo icon indicating copy to clipboard operation
promised-mongo copied to clipboard

authDb support

Open iMarvinS opened this issue 9 years ago • 1 comments

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.

iMarvinS avatar Jul 23 '15 22:07 iMarvinS

Is there a fix for it? I'm also having this issue

adamatti avatar Apr 13 '16 21:04 adamatti