Hi,
I'm trying to create an authenticated connection with mongodb and am failing to do so. WIthout authentication everything works fine, I'm using the mongodb uri for that. However, when adding user credentials it doesn't work and I think, that reason lies in how MongoURI parses the string. Here some logger output:
[info] application - Connecting to mongodb: mongodb://foo:bar@localhost:4040/ua with DB: ua
[info] application - username: foo:bar
[info] application - password: [C@6f155f16
[info] application - host: ListWrapper(4040)
[info] application - collection: ua
As you can see, the data isn't set correctly.
I'm using this command to create the connection
val c: MongoConnection = MongoConnection(MongoURI(mongoUri))
Without user data it works:
[info] application - Connecting to mongodb: mongodb://localhost:4040/ua with DB: ua
[info] application - username: null
[info] application - password: null
[info] application - host: ListWrapper(localhost:4040)
[info] application - collection: ua