If you add a check for your Plugin's authentication in the beforeFilter() 
callback of your controllers it should address the problem.

On Monday, August 20, 2012 8:19:25 PM UTC-4, andrewperk wrote:
>
> Hello,
>
> I've created a plugin which handles authentication(using Auth component) 
> for my projects. The plugin authentication works inside of the plugin 
> itself but it does not authenticate or protect any of my controller/actions 
> outside of the plugin.
>
> For instance my plugin:
>
> /app/Plugin/Logger
>
> The Auth component protects everything inside of the Logger plugin and all 
> of its controllers/actions. But inside of my regular app:
>
> /app/Controller/ExercisesController
>
> This controller and all other controllers in my /app act as if there is no 
> Auth being applied. I'm thinking I need to link it through my AppController 
> but I'm not sure how to make that work with my Plugin which has Auth config 
> already defined in it. Won''t that override my Plugin Auth settings?
>
> How can I make my app recognize and use my Plugin's authentication?
>
> Thanks,
>
> Andrew
>
>

-- 
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].
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.


Reply via email to