corks_cedar library

Corks are authorization tokens which are based off Google's Macaroons paper. They are bearer tokens which identify the entity possessing them, while providing a mechanism for embedding further restrictions via Cedar policy caveats.

Extension Types

CedarCork
A Cork backed by Cedar.
CedarCorkBuilder
A builder for Corks backed by Cedar.

Exceptions / Errors

InvalidCorkException
Thrown when a Cork is invalid or corrupted and cannot be processed.
InvalidSignatureException
Thrown when a Cork signature does not match the expected value.
MismatchedKeyError
Thrown when a Signer key ID does not match the Cork ID.
MissingSignatureError
Thrown when a Cork is missing a signature.