This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Spring and the fly likes Spring Security 3 - how to route all requests through authentication mechanism Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Spring Security 3 - how to route all requests through authentication mechanism" Watch "Spring Security 3 - how to route all requests through authentication mechanism" New topic
Author

Spring Security 3 - how to route all requests through authentication mechanism

Mag Wells
Ranch Hand

Joined: Jun 02, 2010
Posts: 38
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

Joined: Jul 01, 2003
Posts: 89
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.
 
GeeCON Prague 2014
 
subject: Spring Security 3 - how to route all requests through authentication mechanism