Does MongoCR authentication work with Compose.io?

225 views Asked by At

I'm trying to use promised-mongo to access a MongoDB database hosted on Compose.io. I am using the same connection string I use to accept the DB using the mongo CLI tool, but when I try to connect I get:

err { [MongoError: auth failed] name: 'MongoError', message: 'auth failed', ok: 0, errmsg: 'auth failed', code: 18 }

I nosed around in the promised-mongo code a bit and it appears to be using a standard MongoDB library called MongoCR for the authentication. Is this authentication approach simply incompatible with Compose.io, or do I have to change the config of our database somehow or adapt the connection string?

0

There are 0 answers