Hello, I am trying to protect some of my pages with the basic Http Authentification provided by the SecurityComponent (those pages are indeed RSS feeds), but even if everything worked great on my local machine, it kind of fails while online on my Dreamhost server.
I have set up a really simple page showing the problem (it's a fresh cake install, with the latest nightly build). The only new file is the app_controller : http://reveter.pixelastic.com/ class AppController extends Controller { var $components = array('Security'); function beforeFilter() { $this->Security->loginOptions = array( 'type' => 'basic', 'login' => 'httpAuthenticate', 'realm' => 'test' ); $this->Security->loginUsers = array(); $this->Security->requireLogin(); } function httpAuthenticate($args) { debug($args); die(); //I've tried returning false, exiting, calling a blackHole here, but nothing changed. } } So, what I am trying to do, is asking for an http auth on every single page, and displaying the fields entered in the prompt (just to prove that the httpAuthenticate method is triggered). But I kept having a loop of the prompt asking me again and again my login/pass, and the custom method is never triggered. I asked the support team at Dreamhost and they told me that nothing they can think of on their servers could cause such a loop. And as they cannot help with custom scripts I was wondering if they're was something wrong with my implementation ? The guy at Dreamhost thought that maybe the rewrite rules were creating an infinite loop, do you have any clues ? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
