Clone this repo:

Branches

  1. f860c8a feat: add main.rs, and rest requirements (#2) by Siddhesh Kanawade · 3 years, 7 months ago master
  2. 4b3cbd4 Merge pull request #1 from SiddheshKanawade/master by Siddhesh Kanawade · 3 years, 7 months ago
  3. e525fcb feat: added github actions, rbac conf model by Siddhesh Kanawade · 3 years, 7 months ago
  4. 3df94f8 Initial commit by Yang Luo · 3 years, 7 months ago

Casbin with Actix & PgSQL

A simple example, using Actix web, diesel-adapter and Postgresql.

Prerequisite

You need to have docker and docker-compose commands installed.

Run

Run make to setup and run the application.

Then open http://127.0.0.1:1080/?name=casbin, it should say OK which can mean you have access!

If you change the name to anything else, it would return a 403 response with Forbidden message.