O'Reilly logo

Hands-On Full Stack Web Development with Aurelia by Erikson Haziz Murrugarra Sifuentes, Diego Jose Arguelles Rojas

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Implementing authorization

With authentication, we ensure that our application is being used by an authorized person with valid credentials. In most of the applications that you will build in the future, you will find that there are users who have different permissions on the application. For example, a given student might have the permissions to see their grade, but a student is not able to modify the grades. Otherwise, a user who is a teacher can update grades and access other features that a student cannot.

We will implement authorization using another NPM module express-jwt-permissions. By using this module, we will be able to implement authorization in a very simple way. Open the security-api.js file and apply the following changes: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required