Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Spring Security - Custom filter not working as Expected

 
Darren Carter
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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??



 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic