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 3 - how to route all requests through authentication mechanism

 
Mag Wells
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The following configuration works fine for me -



This works fine. It gets me a login page etc.. and the flow works perfect. However, when I try to access any other protected resource like for example

/myApp/yy/test.do

It says the resource is unavailable. How do I configure the the intercept-url so that /myApp/yy/test.do request goes thru the authentication mechanism i.e. if the user isn't logged in it gets back the login page etc.
 
Mark Secrist
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should be able to add a line like:

You can have multiple intercept-url lines. That gives you the flexibility to associated different access rules for different paths.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic