dotcloud/stack.io — pull request #7 by ysimonson (2012-09-21 03:24:22+00:00)
Title: Pass username to services on normal auth

With this patch, the username data will be passed to services as the first argument when normal auth is enabled.

Before:

client.expose("test-service", {
sayHello: function(name, reply) {
reply("Hello, " + name + "!");
}
});

After:

client.expose("test-service", {
sayHello: function(auth, name, reply) {
reply("Hello, " + name + "!");
}
});

Where `auth` contains the authentication information. (e.g. `{"username": "foobar"}`).