title: CakePHP 2 Basic Auth Authentication
body: <p>I am moving from CakePHP 1.3 to CakePHP 2.2.2 and want to use Basic Http authentication for a simple admin area. I am just not able to make it work and I am thinking that I understood something wrong in the documentation.</p>
  
  <p>From the documentation I understood I have to do something like</p>
  
  <pre><code>public $components = array(
      'Auth' =&gt; array(
        'authenticate' =&gt; array(
          'Basic'
        ),
        'authError' =&gt; 'You may not access this area.',
        'authorize' =&gt; array('Controller')
      )
    );
  </code></pre>
  
  <p>I understand that further I need to extend the BaseAuthenticate Component to return valid user date but even with the above configuration I would expect that the browser's Http Access Dialog would open up in a popup window. But nothing like this happens, instead I am redirected to /users/login which does not exist. Why do I need a login view for Http Access? I am confused.</p>