Cakephp 2.0 and basic auth
问题 I've upgraded my app from CakePHP 1.3 to 2.0.4. Previously, I was able to use the Security component to emulate Basic HTTP authentication only in one controller. I used to do something like this: $this->Auth->allow(array('*')); $this->Security->loginOptions = array('type'=>'basic','realm'=>'api'); $this->Security->loginUsers = array("api"=>"123"); $this->Security->requireLogin(); Now SecurityComponent no longer handles Basic and Digest Authentication and I need to do something like this: