You will need to perform a check inside the filter. You can get the current module and action from $ this-> context-> getModuleName () and $ this-> context-> getActionName (). Or you can check the current route name, $ this-> context-> getRouting () → getCurrentRouteName ().
In fact, sfBasicSecurityFilter does the same, disabling forwarding for the login action. Look at the code for it.
Gerry source share