-
-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Support Key Matching #15
Comments
Hi, Any update on this? I would like to use https://casbin.org/docs/en/abac#scaling-the-model-for-complex-and-large-number-of-abac-rules in my frontend app. |
@Manoj-Bharti Hi, currently Casbin.js doesn't support ABAC model. If you would like to use ABAC model at the frontend, we would like to raise this feature asap. BTW, which language of Casbin do you use at your server side? |
@kingiw Thanks for the quick response. We are evaluating casbin currently so it's not in use. We have multiple backend applications where we want to take casbin in use in combination with AWS Cognito. Most of applications are in Node but we have some legacy applications which are written in golang and php. |
@Manoj-Bharti Casbin.js requires some server-side utilities. Now such server-side utilities are available only in Node-Casbin environment. |
@kingiw ok so currently it's not possible, Do we have some kind of visibility when ABAC model will be supported by Casbin.js? I was reading this #12 and here it says |
@Manoj-Bharti It was a very naive implementation for support ABAC. The implementation is to pass the configuration and all related policies to the frontend. We are now trying to optimize the implementation and let Casbin.js support all models in Casbin as well as guarantee not leaking so many info (like policies details) to the frontend. |
@kingiw Ok, Thanks for the info. It would be nice to know if we have some timeline for this. |
Currently, we migrate node-casbin to casbin.js, you can use all features from node-casbin on any js environment. |
@nodece can this issue be closed? |
maybe we need to waiting for the user's response. |
So just to clarify, Casbin.js still doesn't support ABAC? |
@danverde Yes. Currently, using node-casbin is enough, I'm working on node-casbin, you can use the |
@peterzernia @danverde Casbin.js now bases on casbin-core and contains all Casbin functionalities (keymatch, RBAC, ABAC) now: #271 |
I'd like to use the keymatching I use on my backend on the frontend. An example policy using keyMatch would looks like
with a corresponding model.conf
The returned permissions from the casbin backend for admin looks like
Then on the frontend using keyMatch would allow
The text was updated successfully, but these errors were encountered: