-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add macaroons support to node.js bindings
Patch-By: William Whitacre <[email protected]> Patch against HyperDex 1.8.1 Source Distribution Source : http://hyperdex.org/src/hyperdex-1.8.1.tar.gz Patch : ./hyperdex-1.8.1-authjs.patch Patch for enabling node.js bindings for authorization support and test program. Successfully tested against node.js versions [email protected] ([email protected]) [email protected] ([email protected]) Test program depends on [email protected] /home/ww/s/node-hyperdex-test ├─┬ [email protected] │ ├── [email protected] │ └─┬ [email protected] │ └── [email protected] └── [email protected] No support for `secret` argument. Directly pass attribute `__secret` instead to create a secret record: c.put('space', 'key', { __secret: 'super secret', ... }, put_callback); Supports `auth` argument in the following form: c.get('space', 'key', [ M.serialize() ], get_callback); Note that the tail of the argument list after method specific arguments was before taken to just always be the callback. With this patch, existing code will not break, but instead if there are two extra arguments, then the first is taken to be an array of tokens, and the second is taken to be a callback.
- Loading branch information
Showing
4 changed files
with
292 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.