Godson Obielum's Account

Godson Obielum offline 3 years

Implementing Role-Based Access Control in a Node.js application

0

Hi Vedret, Here's a link to the source code: https://github.com/devgson/soshace-rbac

Implementing Role-Based Access Control in a Node.js application

0

Hi Sebastianus, I believe this error can be solved by explicitly specifying a type for that variable

Implementing Role-Based Access Control in a Node.js application

0

Hi Nitin, Thanks for your comment, great to hear you found the article helpful. I'll take your reply into consideration and see if I can create something that'll work together with Angular 2+.

Implementing Role-Based Access Control in a Node.js application

0

Hi Tamzid, I'm glad you liked the article That should be possible although I'd recommend you separate concerns At a glance, a way to this would be to send an object as the first parameter of the `grantAccess` method e.g ...`userController.grantAccess({ updateAny : true, updateOwn : true }, 'profile');` However, If you use the above method, you'd have to make quite some changes to the `userController.grantAccess` method to handle any alternative flows. If you want to discuss more about it you could send me an email, thanks!.

Implementing Role-Based Access Control in a Node.js application

0

Hi Jorge, Thanks a lot for the feedback, happy you found the article useful. You can think of "profile" as a custom resource. We use the word "profile" to indicate a user's profile, any other word could be used as well, it isn't necessarily fixed or imported from anywhere else. Then we specify that only certain roles should be allowed to perform a particular action on that resource(in this case the user profile). E.g A user with a "supervisor" role can view a user's profile but only a user with the "admin" role should be allowed to update or delete a profile Is that a bit clearer?

Implementing Role-Based Access Control in a Node.js application

0

Hello, If possible, could you send a link to your repo where your code is hosted or some snapshots of your code

Building a Telegram Bot with Node.js

2

Hello Nikita, Thanks for your feedback!, happy you liked the article. I'll certainly take that under consideration.

Implementing Role-Based Access Control in a Node.js application

0

Hello Jeremiah, Thanks a lot for your kind words and for the feedback I'll certainly take your request under consideration and would let you know when another article of such is in the works, thank you.

Implementing Role-Based Access Control in a Node.js application

0

Hello Adrien, Happy to hear you found the article helpful, thanks for the feedback

12

Sign in

Forgot password?

Or use a social network account

 

By Signing In \ Signing Up, you agree to our privacy policy

Password recovery

You can also try to

Or use a social network account

 

By Signing In \ Signing Up, you agree to our privacy policy