node-casbin icon indicating copy to clipboard operation
node-casbin copied to clipboard

An authorization library that supports access control models like ACL, RBAC, ABAC in Node.js and Browser

Results 52 node-casbin issues
Sort by recently updated
recently updated
newest added

Based on @Zxilly 's work in: https://github.com/casbin/node-casbin/pull/303 Fixed the issue of `generateGFuncion` being async, therefore not working in syncedEnforcer. I am not sure if the implementation is clear enough, but...

Hi, I might be misunderstanding how the matcher works with the `g` function with roles. I'm following this example except I'm using the `globMatch` - https://casbin.org/docs/en/rbac-with-pattern I'm trying to use...

question

See codesandbox for a simple reproduction: https://codesandbox.io/s/xenodochial-kapitsa-xhszj Basically `enforcer.enforceSync` seems to return always true in the example above, no matter what the subject is.

enhancement

Casbin repository has some initial work done for this: https://github.com/casbin/casbin/pull/1040 When design has been completed, this should be implemented for `node-casbin` as well. Reference issues: https://github.com/casbin/casbin/issues/718 https://github.com/casbin/casbin/issues/872 https://github.com/casbin/casbin/issues/1032

enhancement

Hi, **We have below policy for RBAC** g, monoSamples_p3, monoSamples_p1 g, monoSamples_p3, monoSamples_p2 p, monoSamples_p1, monoSamples, p1 p, monoSamples_p2, monoSamples, p2 **We use below model:** [request_definition] r = sub, obj,...

question

ref: https://github.com/casbin/node-casbin/issues/311#issuecomment-1166572177 cherry-pick of [cc58c57](https://github.com/casbin/node-casbin/commit/cc58c57ae4a7c3202c7217497bef8016df93fe26) and [33c784c](https://github.com/casbin/node-casbin/commit/33c784cbdc0d650ba75b8177b69f41dc0ca11fae)

I am using node-casbin in AWS Lambda functions in conjunction with casbin-dynamodb-adapter. Instead of loading the policy on each lambda call, I was wondering node-casbin supports "StartAutoLoadPolicy", where the policy...

enhancement

Hi, I'm new with Casbin and I'm trying to configure it with multiple policies like: - Feature policy (for each subscription plan, it will contain or not certain features): For...

enhancement

- Wildcard match can be used in the following for now - GetFilteredPolicy() - GetFilteredNamedPolicy() - GetFilteredGroupingPolicy() - GetFilteredNamedGroupingPolicy() - HasPolicy() - HasNamedPolicy() - HasGroupingPolicy() - HasNamedGroupingPolicy() - fix #358