Skip to content
This repository has been archived by the owner on Apr 18, 2020. It is now read-only.

psiace-archive/actix-casbin-example

Repository files navigation

Actix-Web with Casbin-RS

Just a demo for actix-web & casbin.

Usage

git clone git@github.com:PsiACE/actix-casbin-example.git
# or https://github.com/PsiACE/actix-casbin-example.git
cd actix-casbin-example
cargo run

In this example, you can get the the successful result at http://localhost:8080/success (accessible) and the failed result at http://localhost:8080/fail (inaccessible, ERR_EMPTY_RESPONSE).

Contact

Chojan Shang - @PsiACE - psiace@outlook.com

Project Link: https://github.com/psiace/actix-casbin-example

License

Licensed under either of:

Credits

  • actix-web - A small, pragmatic, and extremely fast rust web framework.
  • casbin-rs- An authorization library that supports access control models like ACL, RBAC, ABAC in Rust.
  • @xcaptain's gist example - Early work for example.

About

Just a demo for actix-web with casbin.

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published