Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

authentication in spring

 
Shivaprakash Shettihalli
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm developing an application. I want to implement authentication for the application. I am tring to intercept all the URLs. I tried the same with <intercept-url pattern="/**" access="ROLE_USER" />.
when i did that none of the URLs are getting redirected to the login page.
My requirement is to intercept all the URLs. Please help me out to achieve the same.
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, my first guess is with that setting, you just secured your login page. So you have to login to see the login page, but you can't because you have to login first to login to login to login to login.

Make sure you do something like

<intercept-url pattern="login url here" filters="none"/>

or if you are using the latest Spring Security you can do similar with the <http> tag

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic