I don't need a complete mechanism of authentication.
I just want to protect every action with http basic and leave just one
action unprotected.

As soon add Auth component I should create users table and so on, and
I would avoid this.

On 6 Apr, 10:01, "Mariano C." <mariano.calan...@gmail.com> wrote:
> So I need in couple Auth and Security component?
>
> On 6 Apr, 09:54, "Krissy Masters" <naked.cake.ba...@gmail.com> wrote:
>
>
>
>
>
>
>
> > $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 
> > articlehttp://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 
> > Tutorialshttp://tv.cakephp.org
> > Check out the new CakePHP Questions sitehttp://ask.cakephp.organdhelp
> > 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 
> > athttp://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

Reply via email to