• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Filter before login form in FORM based login

 
Ranch Hand
Posts: 300
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am using FORM based login. I go to a secured page, Tomcat redirects to a FORM login page. However, I have a filter I'd like to execute before the login page. I configure web.xml as such. But does not get executed. Why? Tomcat presumably skips filters for authentication challenges.

I know there is not a configuration problem as I can see the filters getting called when basic authentication happens. After the submit.

Is there any possible way to configure the application to ensure the filter gets called before the login page gets rendered? I know you can add a filter to j_Security_check but this is after the login page has been rendered and the form has been submitted.

Would be grateful to hear any ideas?


Thanks.
 
Ranch Hand
Posts: 312
MS IE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please make the entry point of your application as this Filter.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic