@loopback/example-access-control-migration
TypeScript icon, indicating that this package has built-in type declarations

7.0.6 • Public • Published

@loopback/example-access-control-migration

This example is migrated from loopback-example-access-control, and uses the authentication and authorization system in LoopBack 4 to implement the access control.

Overview

This tutorial demonstrates how to implement a RBAC(Role Based Access Control) system and provides 5 endpoints to test different role's permissions. The tutorial of building it from a dummy application documented in auth-example-migration-tutorial

Setup

First, you'll need to install a supported version of Node:

Additionally, this tutorial assumes that you are comfortable with certain technologies, languages and concepts.

  • JavaScript (ES6)
  • REST

Lastly, you'll need to install the LoopBack 4 CLI toolkit:

npm i -g @loopback/cli

Try it out

If you'd like to see the final results of this tutorial as an example application, follow these steps:

  $ npm start

  Server is running at http://127.0.0.1:3000

Then try different roles' permissions by following the try it out section

Need help?

Check out our Slack and ask for help with this tutorial.

Bugs/Feedback

Open an issue in loopback-next and we'll take a look.

Contributions

Tests

Run npm test from the root folder.

Contributors

See all contributors.

License

MIT

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
7.0.66latest

Version History

VersionDownloads (Last 7 Days)Published
7.0.66
7.0.52
7.0.40
7.0.30
7.0.20
7.0.10
7.0.00
6.1.50
6.1.40
6.1.30
6.1.20
6.1.10
6.1.00
6.0.00
5.0.100
5.0.90
5.0.80
5.0.70
5.0.61
5.0.50
5.0.40
5.0.30
5.0.20
5.0.10
5.0.00
4.1.20
4.1.10
4.1.00
4.0.10
4.0.00
3.0.20
3.0.10
3.0.00
2.5.10
2.5.00
2.4.10
2.4.00
2.3.50
2.3.40
2.3.30
2.3.20
2.3.10
2.3.00
2.2.40
2.2.30
2.2.20
2.2.10
2.2.00
2.1.20
2.1.10
2.1.00
2.0.00
1.4.00
1.3.10
1.3.00
1.2.10
1.2.00
1.1.60
1.1.50
1.1.40
1.1.30
1.1.20
1.1.10
1.1.00

Package Sidebar

Install

npm i @loopback/example-access-control-migration

Weekly Downloads

7

Version

7.0.6

License

MIT

Unpacked Size

230 kB

Total Files

171

Last publish

Collaborators

  • rfeng
  • rmg
  • dhmlau
  • theprez
  • frbuceta
  • marioestradarosa
  • achrinza