-
ref:
https://github.com/casbin/casbin/pull/942
https://github.com/casbin/jcasbin/issues/261
-
I am trying to migrate Casbin.net package from V1.13.0 to V2.9.1. My Enforcer class used to look like this in the previous version.
```
public class CustomEnforcer : Enforcer
{
publi…
-
**What's your scenario? What do you want to achieve?**
We want to use a RBAC model, however in order to access an object, the subject must be associated with more than one role. As an example, we wan…
-
原函数:
```
func (a *adapterCasbin) initPolicy(ctx context.Context) {
// Because the DB is empty at first,
// so we need to load the policy from the file adapter (.CSV) first.
e, err := casbin.Ne…
-
When Casbin is used in a multi-node configuration, one node may change the Casbin configuration, yet the others are unaware of this change. It would be possible for all nodes to use Postgres' LISTEN/N…
-
1. 项目
[casbin](https://github.com/casbin/casbin)
> An authorization library that supports access control models like ACL, RBAC, ABAC in Golang
[ladon](https://github.com/ory/ladon)
> A SD…
-
Logged queries shows that following queries are executed when calling `enforcer.deleteUser()`
```sql
DELETE from casbin_rule WHERE ptype = 'p';
DELETE from casbin_rule WHERE ptype = 'g';
```
-
It will be like: https://github.com/orgs/casbin/projects/2 but it's fully automatic.
- List all open issues (and relevant PRs if any). If issue or PR is closed (or merged), it will be removed.
- M…
-
**What's your scenario? What do you want to achieve?**
I want to use GetRolesForUserInDomain to obtain roles that the user have
**Your model:**
```ini
[request_definition]
r = sub, dom, obj, …
-
1. How wide is this plugin used ?
2. Does casbin perform any caching ? If Yes, what is the time interval ?
3. Does casbin take multiline string as arguments for enforcer initialization, instead of m…