square/cube — pull request #75 by trotter (2012-06-25 17:49:38+00:00)
Title: Multi-tenanancy

I've been working lately on adding some multi-tenancy to cube and would love to get feedback on the approach. I've modified the server config to take two additional parameters `authentication` and `namespace`, which let you authenticate incoming requests and namespace event types per requests. You can see an example of `authentication` in `test/authenticated-collector-test.js`. I haven't added a test for the namespacing yet, because it involves checking mongo to verify that the type was namespaced. Unfortunately, I don't really know how to test that with node/vows. Any help there would be appreciated.

So... what do you think of this approach? Prefer something else? Think this is interesting?