Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 17:28
    casbin-bot review_requested #894
  • 17:28
    casbin-bot commented #894
  • 17:28
    tangyang9464 opened #894
  • 11:41
    hsluoyz unlabeled #893
  • 10:58
    tangyang9464 commented #893
  • 10:01
    casbin-bot labeled #893
  • 10:01
    casbin-bot commented #893
  • 10:01
    dahu33 assigned #893
  • 10:01
    dahu33 labeled #893
  • 10:01
    dahu33 opened #893
  • 04:29
    tangyang9464 commented #892
  • 03:55
    JanakaSandaruwan commented #892
  • Sep 25 05:56
    tangyang9464 commented #892
  • Sep 25 04:54
    JanakaSandaruwan commented #892
  • Sep 25 02:19
    tangyang9464 commented #876
  • Sep 25 02:19
    tangyang9464 commented #876
  • Sep 25 02:10
    hsluoyz commented #892
  • Sep 25 02:09
    hsluoyz unlabeled #892
  • Sep 25 01:36
    tangyang9464 commented #892
  • Sep 24 17:30
    casbin-bot commented #892
bardia
@mrbardia72

@hsluoyz We have a method that gives the presence or absence of a role

That is, it has a word parameter and it has a role

Yang Luo
@hsluoyz
@mrbardia72 plz make a github issue
bardia
@mrbardia72
Yang Luo
@hsluoyz
@mrbardia72 ok
Tory Clasen
@tclasen
Does anyone have an example model / policy for comparing an int on both the requesting user and the accessed resource.
Yang Luo
@hsluoyz
@tclasen can you make a github issue?
tronghm88
@tronghm88
hi everyone, i have a question. Does anyone has a sample for multi thread with nodejs?
I read document but don't know how implement.
Elias Gabriel
@thearchitector
hey, i made a tortoise orm async adapter for asynccabin and wanted to put it here so it could be added to the list of 3rd party adapters on the website: https://github.com/thearchitector/casbin-tortoise-adapter
Yang Luo
@hsluoyz
@thearchitector hi, thanks for the contribution! Saw your PR: casbin/casbin-website#258 already reviewed
Daniel.Chung
@zdianjiang
image.png
1 reply
editor test all return false
Yang Luo
@hsluoyz
@zdianjiang plz send a github issue at: https://github.com/casbin/casbin-editor
Ryan Parrish
@stickystyle
Screen Shot 2021-07-27 at 2.22.07 PM.png
I'm trying to get the sub that only has policy://103_ShipmentRead assigned to it, to not have access to the obj's in policy://103_ShipmentPricing, but the Shipment/* rule will always allow it. I can manually add deny on those fields in 103_ShipmentRead policy, but that will be error prone for the amount of fields I have. Is there a way to accomplish what I'm trying to do?
Philippe Monnet
@techarch
I am having trouble using the "in" grammar extension mentioned in https://casbin.org/docs/en/syntax-for-models#special-grammer. I tried both in the Casbin editor and in a .NET program.
See https://casbin.org/casbin-editor/#4MZTYXUEE
Do you have a complete example of model and policy that you know works?
4 replies
Yang Luo
@hsluoyz
image.png
konduru narasimha
@bobby.kk777_gitlab
hey folks
1 reply
i'm trying to implement a manage policy witch can do any action based on the role is that possible
[matchers]
m = r.sub == p.sub && r.obj == p.obj && r.act == p.act || p.act == "manage" && r.obj == p.obj
chandru19g
@chandru19g
hey someone please tell me how use mongoose adapter and add authorization please share sample code if any one has
Yang Luo
@hsluoyz
@chandru19g hi, plz send a github issue
ged
@gedw99
anyone know if there is an admin cli or gui ? i want to add a GIOUI ( golang ) based gui. I can push it to origin or host it upstream in my repo.
Yang Luo
@hsluoyz
ged
@gedw99
ok
thanks
Dennis Borisevich
@DenSpirit
Hello. Does Casbin editor support multiple policy definitions / multiple matchers (as defined in https://casbin.org/docs/en/syntax-for-models#multiple-sections-type) ?
Yang Luo
@hsluoyz
@DenSpirit not supported yet. Can you create an issue at: https://github.com/casbin/casbin-editor for us to track it?
Pavel Stratil
@killuaeu:matrix.org
[m]
hi, is there a radius plugin/extension to casdoor?
2 replies
Skandrovic
@Skandrovic

Hi, I'm using an ABAC and a RBAC role management system, I don't want to use an adapter but provide the user role to the enforcer instead.
Knowing that I have admin > manager > contributor. Is it a good practice to define role hiearchy like this:

Model:
[role_definition]
g = underscore , underscore

Policy:
g, admin, manager
g, manager, contributor
g, contributor, *

Yang Luo
@hsluoyz
@Skandrovic I think it looks good
Damiano Pezzotti
@damianopezzotti
Hi, some example about casbin setup with Istio?
Yang Luo
@hsluoyz
@damianopezzotti see: https://casbin.org/docs/en/envoy
Damiano Pezzotti
@damianopezzotti
@hsluoyz already seen, but it seems a bit 'too high level on Istio...
Yang Luo
@hsluoyz
@ashish493
Skandrovic
@Skandrovic
@hsluoyz Thank you
Yang Luo
@hsluoyz
@damianopezzotti can you send a issue to: https://github.com/casbin/envoy-authz/issues ?
1 reply
Pham Quang Nha
@nhapq
hi, how do we implement refresh-token (long-lived token?) using casdoor?
Yang Luo
@hsluoyz
@nhapq hi, can you send a github issue to: https://github.com/casbin/casdoor/issues ?
francoisauclair911
@francoisauclair911_gitlab
Hi, I was wondering if any of the casbin maintainers would be interested to be hired for a consultancy project. We're looking into implementing casbin for our microservices and would be interested in having input from the best.
Yang Luo
@hsluoyz
@francoisauclair911_gitlab hi, we can provide consultancy service, I will ping you privately
Deepak Kumar
@itsmedeepak
Hey!! I'm a newbie, Can any one please help me, how should I start to contribute?
7 replies
smrpn
@smrpn:matrix.org
[m]
is there a django-casbin implementation example available?
Yang Luo
@hsluoyz
francoisauclair911
@francoisauclair911_gitlab
@hsluoyz I sent you an email for a consultancy offer from francois.auclair.911@gmail.com. Just making sure it didn't go through your spam
1 reply
Kasun Vithanage
@kasvith
Hi, what is the idiomatic way to handle this scenario with casbin
  1. Super Admin can control everything
  2. End users can use application features
  3. Users also can be staff members of different companies
  4. For different companies, there can be different roles for the same user
    i.e - Bob is an Admin(can do anything within the company) of ACME and also a Marketing Officer(can only access certain features at this company) at ABC
1 reply
Swagat S. Bhuyan
@SwagatSBhuyan
Hello, I'm Swagat from india. Looking forward to contributing to Casbin. If anyone would be kind enough to guide me in these initial stages of getting the hang of it and starting to contribute, that would be really great. Thanks!
Swagat S. Bhuyan
@SwagatSBhuyan
Hello, Swagat again. Sorry for the bother, but, can anyone just guide me as to how to use the casbin libraries efficiently? Is there any .conf files or .csv files I can play around with with the pyCasbin Enforcers? Thanks in advance!
2 replies