Articles Tagged with Acl
-
Jeff Loiselle - Authentication & Authorization with CakePHP
Written on 2008-12-04 08:43:00 in CakeFest, CakePHP,
Viewed 9735 times 0 CommentsWhy authorize and authenticate? Authorization ensures someone is who they say they are. Restricting access is a separate process. Authorization is done in CakePHP with Auth Component. Auth works with a database by default, but it can be changed to work with anything. LDAP, Radius, and OpenID are some examples of alternate authentication sources. Auth component has a number of benefits. It hashes passwords, and it provides one API for all authentication sources. Setting up AuthComponent Need to setup a users table and create a user model. You should have a username and password field. This will help you make the most of the intelligent defaults built into Auth. After that you need to add Auth to you controllers var $components. Acl component Has an easy to use API, identifies, create nodes, checks permissions. The ACL comp...