wereHamster/mojo — Issue #1: Add support for MongoDb authentication
Author: hannesgassert
Created: 2011-10-27 15:16:30+00:00
State: open

For folks (like me) trying out mojo on some hosted environment / PaaS being able to use an authenticated connection to Mongo would be very helpful.

Without knowing any CoffeeScript I tried this, which even sort of helped:

```
new mongodb.Db(opt.db, server, {}).open (err, db) =>
db.authenticate opt.username, opt.password, (err) =>
db.collection 'mojo', (err, collection) =>
@mojo = collection
...
```