https://github.com/tx7do/kratos-casbin
kratos casbin middleware
https://github.com/tx7do/kratos-casbin
access-control acl authorization casbin kratos rbac
Last synced: about 1 year ago
JSON representation
kratos casbin middleware
- Host: GitHub
- URL: https://github.com/tx7do/kratos-casbin
- Owner: tx7do
- License: mit
- Created: 2022-03-17T07:12:38.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2025-03-24T04:34:04.000Z (about 1 year ago)
- Last Synced: 2025-04-03T00:06:16.458Z (about 1 year ago)
- Topics: access-control, acl, authorization, casbin, kratos, rbac
- Language: Go
- Homepage:
- Size: 443 KB
- Stars: 35
- Watchers: 1
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# kratos-casbin
## Casbin Authorization Middleware for Kratos.
[Casbin](https://casbin.org) is a powerful and efficient open-source access control library for Go. It provides support for enforcing authorization based on various models. So far, the access control models supported by Casbin are:
- ACL (Access Control List)
- ACL with superuser
- ACL without users: especially useful for systems that don’t have authentication or user log-ins.
- ACL without resources: some scenarios may target for a type of resources instead of an individual resource by using permissions like write-article, read-log. It doesn’t control the access to a specific article or log.
- RBAC (Role-Based Access Control)
- RBAC with resource roles: both users and resources can have roles (or groups) at the same time.
- RBAC with domains/tenants: users can have different role sets for different domains/tenants.
- ABAC (Attribute-Based Access Control)
- RESTful
- Deny-override: both allow and deny authorizations are supported, deny overrides the allow.