@wmfs/tymly-rbac-plugin v1.31.0
tymly-rbac-plugin
This plugin handles role based authentication
...
Install
$ npm install tymly-rbac-plugin --save
Add to your list of Tymly plugin's using
await tymly.boot({
blueprintPaths: [
...
],
pluginPaths: [
path.resolve('@wmfs/tymly-rbac-plugin'),
...
]
},
...
The RBAC service will initialise itself from state machine restrictions. Users can be added to groups using the ensureUserRole methods, or by populating the role and role-membership tables.
Tymly's Statebox service is RBAC aware and so, if this plugin is loaded, will using this service to control access to state machines.
Methods
listUserRoles(userId)
checkAuthorization(userId, ctx, resourceType, resourceName, action)
ensureUserRoles(userId, roleIds)
refreshRbacIndex()
License
10 months ago
8 months ago
7 months ago
11 months ago
11 months ago
11 months ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
3 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago