Hi,

On Thu, Jan 23, 2014 at 5:45 AM, Chetan Mehrotra
<[email protected]> wrote:
> On Thu, Jan 23, 2014 at 2:35 PM,  <[email protected]> wrote:
>> +        mongo = new MongoClient(mongoURI);
>> +        db = mongo.getDB(mongoURI.getDatabase());
>
> The database referred in the URI is used by Mongo for determining the
> user database against which credentials if passed needs to be
> validated.

The credentials in any case need to be valid for the database that
holds the repository, so I don't see why we couldn't use it for this
purpose.

BR,

Jukka Zitting

Reply via email to