问HN:授权选择CASL还是Casbin?

1作者: chaidhat3 个月前原帖
你好,我有一个20k LOC的后端需要实现授权功能。我们有: 1. 用户 2. 管理员 3. 用户所属的组织 4. 属于组织的角色,用户可以被分配到这些角色 5. 可供用户、角色和管理员读写的审计表单 对于授权,哪种方式最好?我还是一个初学者,所以不太清楚使用RBAC、ReBAC还是ABAC哪种更合适。 谢谢!
查看原文
Hi, I have a 20k LOC backend that I need to implement authorization. We have<p>1. users, 2. admins, 3. organizations where users belong 4. roles which belong to an organization and users can be assigned to said roles 4. audit forms which are read&#x2F;write capable for users, roles and admins<p>What is best for authorization? I am a pretty beginner programmer so I don&#x27;t know which is best&#x2F;whether to use RBAC, ReBAC or ABAC.<p>Thanks!