1602/jugglingdb — pull request #110 by imothee (2012-08-14 14:31:59+00:00)
Title: Mongodb native driver replicaset and authentication

As per the conversation in the other ticket, I have added rudimentary auth and replica set support to the mongodb native driver.

I'm currently testing these fixes in the staging environment and it seems to be working well.

Your input on structure/inclusion would be appreciated. I tested the auth well and found no issues separately to the replica set inclusions.

Feel free to copy the auth code independently of the replica set stuff.

Cheers

As an aside - migrating from the mongoose.js driver to the mongodb driver introduced some interesting issues. It may be worthwhile for a long term strategy to include some migration code rather than attempting to make both function the same.

1. collection names changed from lowercase plural to uppercase singular (posts to Post)
2. all relationship id's changed from ObjectID() to String