aspose file tools*
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Spring Security 3 - how to route all requests through authentication mechanism
 
Similar Threads
Spring security - Mysql - problem
Question on web container
Spring Security Logout not working
SpringSecurity-config.xml doesn´t find http tag
Spring Security 3 - cant't access secured page