Comments (5)
from jcasbin.
@Harishs27 can you answer these?
- What you do?
- What you expect?
- What you got instead?
- Is this happening for all Casbin versions? If not, it starts to happen from which version?
from jcasbin.
- We are using rbac for authorization. I am using RBAC model with domain.
- I should be able to use casbin enforcer to fetch roles, permissions of user and should be able to validate permission of user against the stored policy using casbin.
- When trying to fetch the users roles and permission the enforcer.getRolesForUserInDomain(userId, domain) is throwing error as org.casbin.jcasbin|error: name does not exist. Ideally it should have given me all the roles which are associated to the user. And by querying the db i can see that the user has multiple roles with him.
- We have multiple environments where we are using the same version of casbin for authorization and it's all working fine. But however it started failing in one of the environments now. And it's unable to recover from this state.
I have not upgraded to new versions of casbin. So i am not sure if its recurring issue with other versions as well
from jcasbin.
Run test testRoleAPIWithDomains()
in RbacAPIWithDomainsUnitTest.java
to test getRolesForUserInDomain()
, all as expected! The probability is that you are using it incorrectly, you can refer to the usage of the test.
from jcasbin.
Closed as resolved
from jcasbin.
Related Issues (20)
- [Bug] Implicit role doesn't work in java lib 'jcasbin' but work in casbin editor HOT 2
- [Feature] Implement WatcherEx HOT 2
- get 'define class error' for first enforcement HOT 4
- Casbin with Graalvm native breaks since 1.32.0 HOT 2
- High risk vulnerability. HOT 2
- [Bug] Java SDK Bug of keyMatch4 HOT 2
- CSV values escaped using \ HOT 4
- [Bug] ConcurrentModificationException breaks Enforcer when calling Enforce() HOT 3
- NPE when loading model of RBAC with domain and keyMatch HOT 2
- [feature] support map in ABAC HOT 1
- Sync all test cases from Go to Java HOT 1
- The automated release is failing 🚨 HOT 1
- Update com.github.seancfoley:ipaddress to 5.4.1+ to fix CVE-2023-50570 HOT 1
- The automated release is failing 🚨 HOT 1
- Does Jcasbin support rbac-with-conditions? HOT 1
- The automated release is failing 🚨 HOT 2
- When using transactions, is it possible to provide an appending method instead? HOT 4
- jcasbin EnableAcceptJsonRequest HOT 3
- Dont see any user interactions in casbinJsGetPermissionForUser method HOT 3
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 jcasbin.