Ensure you are in the examples/authz-example directory.
cd examples/authz-exampleTo build the example package, execute the following commands:
mvn clean package2.1 using topaz
2.1.1 install and configure topaz
- Install topaz
- Configure topaz to use the
todopolicy
topaz configure -d -s -r ghcr.io/aserto-policies/policy-todo:v2 todo- Download topaz directory data
topaz stop
wget https://www.topaz.sh/assets/templates/v33/citadel/db/citadel.db -O ~/.config/topaz/db/directory.db- Start topaz
topaz start
- Validate if topaz is running
topaz statuscp assets/.env.topaz-authorizer.example .envTo run the examples, execute:
java -jar target/examples-1.0.0-shaded.jar