• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Spring-security allow multiple entry points?

 
Greenhorn
Posts: 14
MyEclipse IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have existing spring-security which accept xml header and throws an error message if xml received is malformed, basically it filters all request. I have config like this.



preAuthFilter - parse the xml receive then set the important attribute.
loginAuthenticationEntryPoint - retrieve the attribute that has been set then authenticate the user.

Now I have a task to have an exemption if url received is different (e.g. url received is = "/customer/sample/**").

I have an two ideas, just ideas I actually don't know I possible
1. allow mutliple entry entry points, but I really don't know if possible.
2. create another custom-filter before preAuthFilter. So I have something like this.
then my preAuthFilterBefore parse also an xml which I formed.
And then have a condition in loginAuthenticationEntryPoint if request is not null then I will set my authentication.

Any ideas? Which is better or is there another way?
Thanks.
reply
    Bookmark Topic Watch Topic
  • New Topic