After seeing some excellent posts here on the group, I've attempted to
implement some basic authentication into my CakePHP instance by
overriding the AppController class. (I don't have any roles, but I do
need basic authentication.) My beforeFilter() method works just fine
until I add the requestAction() method. After that my browser times
out to a white screen as if a loop was cut off. Here's the class:
class AppController extends Controller
{
function beforeFilter()
{
if ( ( !$this->requestAction ( '/login/isLoggedIn' ) ) && (
$this->action != 'login' ) )
{
$this->redirect('/user/login');
}
}
}
I've tried making another model/method ('equipment/getEquipmentList')
and pointing the requestAction() at it, but it looped the same way.
I'm not sure that I'm architectually doing this the best. I have a
login controller/model that is going to call my LdapUser
controller/model and will set the necessary session variables. Is
there a standard way of performing authentication different from what
I'm doing?
Thanks,
Devo
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---