martes, 29 de mayo de 2012

Gestión de roles en el código


Gracias a Carlos Ble.



Don’t Do Role-Based Authorization Checks; Do Activity-Based Checks




http://lostechies.com/derickbailey/2011/05/24/dont-do-role-based-authorization-checks-do-activity-based-checks/


I used to call this action-based security. However, the recent popularity in Model-View-Controller application architectures has overloaded the term “action”. Most people think of actions as controller actions because of this. While a controller action is certainly an action or activity that may have authorization needs, it’s not the only place that authorization may need to be checked. Using the term “activity” instead of action gives a little bit of differentiation and distinction, to hopefully indicate that authorization is not strictly limited to controller actions.

No hay comentarios:

Publicar un comentario