This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Spring and the fly likes Spring Security - Custom filter not working as Expected Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Spring Security - Custom filter not working as Expected" Watch "Spring Security - Custom filter not working as Expected" New topic
Author

Spring Security - Custom filter not working as Expected

Darren Carter
Ranch Hand

Joined: Jul 08, 2010
Posts: 30
Hi everyone,

I hope someone could help me.

Im developing a security module where I would like to apply authentication mechanisms to separate REST urls.

My issue is that my custom filter is applied to all URLs that I enter. I thought that if I changed the intercept URL pattern then the filter would not need to be applied? can anyone help me understand this?

Here’s my Config



So if I access /database/register/user - The customRestFilter is applied

but if I access /database/login - The customRestFilter is also applied - I thought this would not be the case???

Can anyone help me understand this please??



 
 
subject: Spring Security - Custom filter not working as Expected
 
Similar Threads
Spring Security Not intercepting the request
Spring LDAP/Active Directory Security: Authenticate User w/out Using an Admin/Mgr Account
“j_spring_security_check” not found after configuring spring security without http namespace
Preauthentication problem
spring security 3.1 destroys existing session with active user logged in