Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/celest-dev/corks
Modern authorization token format based on Macaroons and Cedar
https://github.com/celest-dev/corks
authorization cedar macaroons
Last synced: about 2 months ago
JSON representation
Modern authorization token format based on Macaroons and Cedar
- Host: GitHub
- URL: https://github.com/celest-dev/corks
- Owner: celest-dev
- License: other
- Created: 2024-05-07T18:22:09.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-10-28T23:55:25.000Z (2 months ago)
- Last Synced: 2024-11-16T03:27:34.260Z (about 2 months ago)
- Topics: authorization, cedar, macaroons
- Language: Dart
- Homepage:
- Size: 316 KB
- Stars: 4
- Watchers: 0
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Corks
Corks are authorization tokens which are based off Google's [Macaroons](https://research.google/pubs/macaroons-cookies-with-contextual-caveats-for-decentralized-authorization-in-the-cloud/) paper. They are bearer tokens which identify the entity possessing them, while providing a mechanism for embedding further restrictions via [Cedar](https://www.cedarpolicy.com/en) policy caveats.
## Development
Corks use Protobuf for serialization and deserialization of bearers and caveats. The proto definitions are located in the [proto](./proto) directory and the [Buf](https://buf.build) toolchain is used to generate Dart code from the Protobuf files.
To generate the Dart code, install Buf then run the following command from the `proto/` directory:
```sh
$ buf generate
```