Friday 19 May 2017

Node js : How can I integrate authorization and authentication to my node application?

In my node application, I have an admin that can make all requests and the normal user that has the right to make only certain requests.

example:

admin cans make:

post on /root, /user, /tools

simple users can make:

post on /users, /tools

If a simple user tries to make a request on /root, he just receives and error message.

How can I handle this is node js? which package, if possible few examples.

thank



via dmx

No comments:

Post a Comment