Re: CakePHP Auth-component in AppController

2010-03-05 Thread Robert P
If you have moved all your Auth logic to your AppController you need
to make sure that you are extending the methods in subcontrollers, not
overwriting them.

class UsersController extends AppController {
public function beforeFilter() {
parent::beforeFilter(); // extended
// custom logic
}
}

Permanent redirects after changes to Auth are almost always related to
the configuration.

--
Varisan International 

On Mar 4, 11:27 pm, LDSign  wrote:
> Hi
>
> Ive implemented the login-logic with help of Auth. This works fine.
> But I would like to have auth all over my site. So I would like to
> include this component to the AppController (for global access). As
> soon as I do so, the site stops working. The page will load for some
> seconds and then there comes blank page with a redirect-error (sorry
> Ive this only in german):
>
> "Diese Webseite weist eine Weiterleitung auf.
>
> Die Webseite unterhttp://localhost/ben/users/loginhat zu viele
> Umleitungen erzeugt. Das Löschen Ihrer Cookies für diese Website oder
> das Zulassen von Drittanbieter-Cookies könnte das Problem
> möglicherweise beheben. Sollte das Problem damit nicht behoben sein,
> liegt möglicherweise ein Serverkonfigurationsfehler und kein Problem
> mit Ihrem Computer vor."
>
> This drives my nuts. Do you have any hint? Until now Ive thought that
> when I move my components from the (sub-)controller to the
> AppController that this doesnt make any change execpt for accessing it
> globally.
>
> I use cakePHP 1.3 - latest beta. Are there any known issues?
>
> Thank you,
> Frank

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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?hl=en


Re: CakePHP Auth-component in AppController

2010-03-04 Thread Miles J
What does your beforeFilter look like?

Make sure your not allowing the login page.

On Mar 4, 7:27 am, LDSign  wrote:
> Hi
>
> Ive implemented the login-logic with help of Auth. This works fine.
> But I would like to have auth all over my site. So I would like to
> include this component to the AppController (for global access). As
> soon as I do so, the site stops working. The page will load for some
> seconds and then there comes blank page with a redirect-error (sorry
> Ive this only in german):
>
> "Diese Webseite weist eine Weiterleitung auf.
>
> Die Webseite unterhttp://localhost/ben/users/loginhat zu viele
> Umleitungen erzeugt. Das Löschen Ihrer Cookies für diese Website oder
> das Zulassen von Drittanbieter-Cookies könnte das Problem
> möglicherweise beheben. Sollte das Problem damit nicht behoben sein,
> liegt möglicherweise ein Serverkonfigurationsfehler und kein Problem
> mit Ihrem Computer vor."
>
> This drives my nuts. Do you have any hint? Until now Ive thought that
> when I move my components from the (sub-)controller to the
> AppController that this doesnt make any change execpt for accessing it
> globally.
>
> I use cakePHP 1.3 - latest beta. Are there any known issues?
>
> Thank you,
> Frank

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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?hl=en


CakePHP Auth-component in AppController

2010-03-04 Thread LDSign
Hi

Ive implemented the login-logic with help of Auth. This works fine.
But I would like to have auth all over my site. So I would like to
include this component to the AppController (for global access). As
soon as I do so, the site stops working. The page will load for some
seconds and then there comes blank page with a redirect-error (sorry
Ive this only in german):

"Diese Webseite weist eine Weiterleitung auf.

Die Webseite unter http://localhost/ben/users/login hat zu viele
Umleitungen erzeugt. Das Löschen Ihrer Cookies für diese Website oder
das Zulassen von Drittanbieter-Cookies könnte das Problem
möglicherweise beheben. Sollte das Problem damit nicht behoben sein,
liegt möglicherweise ein Serverkonfigurationsfehler und kein Problem
mit Ihrem Computer vor."

This drives my nuts. Do you have any hint? Until now Ive thought that
when I move my components from the (sub-)controller to the
AppController that this doesnt make any change execpt for accessing it
globally.

I use cakePHP 1.3 - latest beta. Are there any known issues?

Thank you,
Frank

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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?hl=en