BengarTrust infrastructure

Docs · Getting started

Getting started

Two ways in: the offline primitives, or a running authorization service.

Pick a path

If you want to…Start hereWhat it needs
Understand permits by holding oneThe CLI path belowNode. No database, no service, no chain.
Get an ALLOW out of the authorization serviceThe quickstartDocker for Postgres and Redis, and a checkout.
Read before running anythingCore conceptsNothing.

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.txt

Everything 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.

Related