Skip to content

Latest commit

 

History

History
65 lines (41 loc) · 1.17 KB

File metadata and controls

65 lines (41 loc) · 1.17 KB

slack

0. prerequisites

Ensure you are in the examples/authz-example directory.

cd examples/authz-example

1. building the examples

To build the example package, execute the following commands:

mvn clean package

2. setup environment

2.1 using topaz

2.1.1 install and configure topaz

  • Install topaz
  • Configure topaz to use the todo policy
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 status

2.1.2 copy the examples/assets/.env.topaz-authorizer.example to the examples directory

cp assets/.env.topaz-authorizer.example .env

3. Running the example

To run the examples, execute:

java -jar target/examples-1.0.0-shaded.jar