TL;DR —
Roles are defined along with their respective permissions as seen in Code (Part-III) Based on the permissions for each role, we will evaluate the authorization for the user in each of our controller methods. The convention used here is the controller/service name of the file followed by method name. For example, USERS_CONTROLLER_FINDLIST_OPERATIONS = "userscontroller.findList_operations", we have users.controller as the controller name followed by the method name as findList.controller.
[story continues]
Written by
@krishnagk
CODING
Topics and
tags
tags
nestjs|mongodb|mongoose|rbac|role-based-access-system|backend|authentication|authorization
This story on HackerNoon has a decentralized backup on Sia.
Transaction ID: AlBUeBA7HkTFha7wX-zsbDKvJrqEEs4MpG-0vBD5anw
