Manage permissions using the trunk

I am building a new project with a foundation, and I was wondering what is the best way to handle user rights with it. for example, if I want a specific control to not be displayed for some users. where should the logic be for this? I thought maybe check this out on the View initialization function and wrap the rendering function with it. what would you do?

+5
source share
2 answers

All security tasks, such as authorization and authentication, must be managed by the server. It is so easy to get around them in the client, making all auth / acl operations in the client irrelevant. Use session and cookies to manage this server implementation.

. userSession.js

0

Addy Osmany Large Scale Javascript. Facade, .

aura, , , .

+1

All Articles