w6d-io / docker-opa

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

opa

OPA

OPA rust is an api that allows to manage authorizations. It is based on KRATOS Ory and integrates opa wasm.

To start the api follow the steps:

RUN OPA RUST AND CALL HIM

## For start opa rust api
#Step 1:
cargo build
#Step 2:
cargo run
#Step 3:
curl -X POST -L http://127.0.0.1:8000 -H "Content-Type: application/json" -d '{"input": {"resource": "222","role":"admin",\
"method": "get", "uri": "<uri/to/the/caller>" }, "data": {<kratos identity json>}}'

enjoy :)

About


Languages

Language:Rust 82.8%Language:Open Policy Agent 9.4%Language:Dockerfile 6.9%Language:Shell 0.8%