-
-
Notifications
You must be signed in to change notification settings - Fork 219
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question]How to add RBAC with domains in loopback4 #412
Comments
Hi, anyone can give me some tips how to modified domain in node.casbin, thank you. |
Looks like you implement role management without casbin? const allowedRoles = metadata.allowedRoles;
if (!allowedRoles) return AuthorizationDecision.ALLOW;
if (allowedRoles.length < 1) return AuthorizationDecision.DENY; |
I have casbin in different file. [request_definition] [policy_definition] [role_definition] [policy_effect] [matchers] |
I think you use this file and want to add domain support? Please ref to https://github.com/casbin/node-casbin/blob/master/test/rbacwDomainAPI.test.ts |
What if I have thousands of users, how do I check their roles and domains dynamically? |
how to add domain in casbin.authorizer?
The text was updated successfully, but these errors were encountered: