Clone this repo:

Branches

  1. 4480e5b feat: Added main logic, readme, formatting and clippy happy (#2) by Siddhesh Kanawade · 3 years, 7 months ago master
  2. 247bd6c feat: github CI, basic filestructure (#1) by Siddhesh Kanawade · 3 years, 7 months ago
  3. ab6374e Initial commit by Yang Luo · 3 years, 7 months ago

ntex FileAdapter ACL

Basic integration of Casbin-RS with FileAdapter for ntex.

This example uses the ACL model.

Usage

cd examples/ntex_fileadapter_acl

Modify the files in the acl directory and the code in the src directory as required.

Running Server

cd examples/ntex_fileadapter_acl
cargo run (or ``cargo watch -x run``)

# Started http server: 127.0.0.1:8080

In this example, you can get the the result at http://localhost:8080/auth/{name}/{action}, please use alice or bob instead of {name}, use read or write instead of {action}.