-
Notifications
You must be signed in to change notification settings - Fork 0
Quick Start
Orionis Release Bot edited this page Jul 4, 2026
·
1 revision
Terminal 1: authorization server.
go run ./cmd/orionis-auth -config ./config/orionis.example.jsonTerminal 2: protected billing service.
go run ./examples/gin-billing-serviceTerminal 3: orders client.
go run ./examples/gin-orders-clientExpected output:
status=201
{"amount":1500,"called_by":"orders-service","invoice_id":"inv_demo_001","order_id":"ord_demo_001","scope":"billing.invoice.create"}
docker compose up --build --wait -d orionis-auth billing-api
docker compose run --rm orders-client
docker compose down --remove-orphansDo not use docker compose down -v unless you intentionally want to delete the generated local signing key stored in the orionis-var volume.
curl -s \
-u 'orders-service:orders-local-secret-change-me' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-d 'grant_type=client_credentials' \
-d 'audience=billing-api' \
-d 'scope=billing.invoice.create' \
http://localhost:8080/oauth/token | jqcurl -s http://localhost:8080/.well-known/jwks.json | jq