gearvOsh is correct in addition, when you have a public action
isAuthorized is never called.  Why would it? you are visiting a public
url.

-Mark

On Jan 4, 1:14 am, Matt Williamson <[email protected]> wrote:
> Hey Guys,
>
> I am trying to use the Auth component, but I'm pretty sure there's
> some bug preventing me from doing so. Here is what my
> app_controller.php looks like:
>
> <?php
> class AppController extends Controller {
>     var $components = array('Auth');
>
>     function beforeFilter(){
>         $this->Auth->allow('*');
>         $this->Auth->logoutRedirect = '/';
>         $this->Auth->loginRedirect = '/';
>         $this->Auth->authorize = 'controller';
>     }
>
>     function isAuthorized(){
>                 die('isAuthorized Called!');
>     }}
>
> ?>
>
> Whenever I browse to a view, I get redirected to the login page. I'd
> expect the behavior to allow access to the view or at least the string
> 'isAuthorized Called!' to be printed, but it seems the isAuthorized
> method is never called. The following works, though:
>
> $this->Auth->allowedActions = array('*');
>
> I am using PHP4 on XAMPP/Windows.
>
> Can someone try to reproduce and/or tell me what I'm doing wrong?
>
> Thanks,
>
> Matt
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to