Comments (3)
@techoner @Xhy-5000 please provide some advices.
from pycasbin.
v0 - v5 means value 0 to value 5, each value can be one of Subject/Object/Action in the policy rule.
In PML's grammar, it is: p = sub, obj, act
policy rule ::= {value1, value2, value3, ...}
e.g. {alice, data1, read} => p.sub = alice, p.obj = data1, p.act = read
The adapters add some more value variables for longer policy rules, you can just ignore it if your policy rules are shorter than 6 values.:)
from pycasbin.
Example 1
- Yes, use
get_implicit_permissions_for_user()
As another example; if I wanted to use DB table ID's instead of Store names, would I use the table name as a domain?
It's not good. Domain is a logic concept than an object like table. You can use global ID to remove duplication between tables.
from pycasbin.
Related Issues (20)
- Casbin not able to load data from mysql , It's work on 1.15 version but not working on 1.17 HOT 10
- Improve policies reload time HOT 1
- Invallid policy size when checking if value is in array HOT 5
- Add batchEnforce() API for pycasbin HOT 2
- README.md file in package is installed in venv outside the package subdirectory HOT 3
- add_policies inoperative HOT 11
- Performance issue when casbin_rule table has 86k rows HOT 2
- Bug in priority effectors HOT 14
- Enforcer doesn't respect enable_log HOT 2
- casbin disable all logger HOT 1
- Policies with explicit integer priorities are not sorted correctly HOT 1
- Unexpected logging behaviour when enable_log is False by default HOT 4
- Missing "]" symbol on line 4 of /example/error/error_model.conf HOT 2
- asyncio Adapter support HOT 4
- 10k+ rule using ABAC takes about 500ms HOT 2
- Failed to initialize Enforcer string model HOT 3
- Asynchronous adapters interface stubs do not match when pycasbin > = 1.34.0 HOT 6
- Python 3.11 support HOT 3
- AsyncEnforcer doesn't support async calls for Watcher's update function HOT 4
- consider support async matcher function HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pycasbin.