Skip to content

Macaroons: bearer credentials with caveats for distributed authorization

License

Notifications You must be signed in to change notification settings

panicbit/rust-macaroons

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Macaroons for Rust

Build Status Latest Version MIT licensed

A better kind of cookie.

Macaroons are a bearer credential format built around "caveats", i.e. conditions that must hold for a particular credential to be authorized. Using neat crypto tricks, anyone holding a Macaroon can add more caveats to a Macaroon, but once caveats are added they cannot be removed.

http://macaroons.io

Is it any good?

Yes.

Is it "Production Ready™"?

The library is ready for eager early adopters. If you're using Rust, you're probably one of those anyway.

The following features have been implemented:

  • Creating Macaroons
  • Verifying Macaroons
  • First-party caveats
  • Third-party caveats
  • Serializing to base64url-encoded binary format
  • Deserializing base64url-encoded Macaroons
  • Verifying first-party caveats

The following features still need to be implemented:

  • Discharge macaroons
  • Verifying third-party caveats

Additional planned work:

  • Nom-based parser (may require API changes)

Help and Discussion

Interested in Macaroons? Join the Macaroons Google Group:

https://groups.google.com/forum/#!forum/macaroons

You can also join by email by sending an email message here:

macaroons+subscribe@googlegroups.com

We're also on IRC at #macaroons on irc.freenode.net.

Usage

Coming soon!

Additional Reading

License

Copyright (c) 2015-2016 Tony Arcieri. Distributed under the MIT License. See LICENSE.txt for further details.

About

Macaroons: bearer credentials with caveats for distributed authorization

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%