macaroons 0.3.0

Cookie-like bearer credentials with caveats for distributed authorization
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#![crate_name = "macaroons"]
#![crate_type = "lib"]

extern crate sodiumoxide;
extern crate rustc_serialize;

pub mod caveat;
pub mod error;
pub mod token;
pub mod verifier;

pub mod v1;

// Macaroons personalize the HMAC key using the string
// "macaroons-key-generator" padded to 32-bytes with zeroes
pub const KEY_GENERATOR: &'static [u8; 32] = b"macaroons-key-generator\0\0\0\0\0\0\0\0\0";