{"repo":"apache/casbin-actix-casbin-auth","free":true,"listed":false,"github":"https://github.com/apache/casbin-actix-casbin-auth","clone":"git clone https://github.com/apache/casbin-actix-casbin-auth.git","description":"Casbin Actix-web access control middleware","language":"Rust","stars":58,"topics":["actix-web","middleware","actix","casbin-rs","casbin","abac","rbac","acl","permission","auth"],"license":null,"category":"auth-billing-email","readme_excerpt":"Actix Casbin Middleware Casbin access control middleware for actix-web framework Install Add dependencies Requirement Casbin only takes charge of permission control , so you need to implement an Authentication Middleware to identify user. You should put actix casbin auth::CasbinVals which contains subject (username) and domain (optional) into Extension. For example: Example Customizing Error Responses By default, the middleware returns the following HTTP status codes: - 401 Unauthorized - when no CasbinVals are found in request extensions - 403 Forbidden - when access is denied by Casbin enforcer - 502 Bad Gateway - when the Casbin enforcer returns an error You can customize these error responses to return structured JSON or any other format: License This project is licensed under Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)","default_branch":null,"files":null,"tree":[],"storefront":"/r/apache","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/apache/casbin-actix-casbin-auth/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}