$this->Auth->allowedActions = array(); //will allow nothing $this->Auth->allowedActions = array('login'); //only allow the action in the array
These are set in the controller itself so you could specify just the 1 allowed action for that controller. K -----Original Message----- From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf Of Mariano C. Sent: Wednesday, April 06, 2011 5:13 AM To: CakePHP Subject: Security component and HTTP Basic Authentication I've read this article http://book.cakephp.org/view/1309/Basic-HTTP-Authentication Now I've a lot of controller with many actions to protect, so I could consider the idea to insert that beforeFilter directly inside AppController (and not in the single controller), so every action will be protected. Am I right? Now I have just one action that doesn't need authentication, what should I write inside that action to avoid auth???? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php