Docs · Getting started
Getting started
Two ways in: the offline primitives, or a running authorization service.
Pick a path
| If you want to… | Start here | What it needs |
|---|---|---|
| Understand permits by holding one | The CLI path below | Node. No database, no service, no chain. |
| Get an ALLOW out of the authorization service | The quickstart | Docker for Postgres and Redis, and a checkout. |
| Read before running anything | Core concepts | Nothing. |
The offline path, in four commands
bengar id create --name acme
bengar id create --name agent
bengar permit issue --issuer acme \
--audience "$(bengar id show agent --json | jq -r .did)" \
--can purchase --with 'resource://company/procurement/*' \
--max-per-tx 500000:TRY --out permit.txt
bengar permit verify permit.txtEverything there works with no network. That is the point of the primitives: a permit is a document, and checking one does not require asking us.