1.31.0 • Published 7 months ago

@wmfs/tymly-rbac-plugin v1.31.0

Weekly downloads
97
License
MIT
Repository
github
Last release
7 months ago

tymly-rbac-plugin

Tymly Plugin npm (scoped) CircleCI codecov CodeFactor Dependabot badge Commitizen friendly JavaScript Style Guide license

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

MIT

1.29.0

10 months ago

1.30.0

8 months ago

1.31.0

7 months ago

1.26.0

11 months ago

1.27.0

11 months ago

1.28.0

11 months ago

1.25.0

1 year ago

1.24.0

1 year ago

1.22.0

2 years ago

1.23.0

2 years ago

1.22.1

2 years ago

1.19.0

3 years ago

1.21.0

2 years ago

1.20.1

2 years ago

1.20.0

2 years ago

1.18.1

3 years ago

1.18.0

3 years ago

1.17.3

4 years ago

1.17.2

4 years ago

1.17.1

4 years ago

1.17.0

4 years ago

1.16.0

4 years ago

1.15.0

5 years ago

1.14.0

5 years ago

1.13.0

5 years ago

1.12.2

5 years ago

1.12.1

5 years ago

1.12.0

5 years ago

1.11.0

5 years ago

1.10.1

5 years ago

1.10.0

6 years ago

1.9.0

6 years ago

1.8.0

6 years ago

1.7.0

6 years ago

1.6.0

6 years ago

1.5.0

6 years ago

1.4.0

6 years ago

1.3.0

6 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago