Results 1 to 2 of 2

Thread: Ultra-SIMPLE security question

  1. #1

    Talking Ultra-SIMPLE security question

    I made setup of sample 'wedding' app.
    security setup -> all configured right! Wonderful!
    Now I'd like to protect ALL my urls with login page.
    I thought <intercept-url pattern="/**" access="permitAll" /> with something like isAuthenticated() replacing permitAll may be enough but I was wrong.
    Can you give me a flash-answer, please?
    Thanks a lot, Fabio.

  2. #2
    Join Date
    Mar 2008
    Location
    Sydney, AU
    Posts
    974

    Default

    Restricting everything with pattern="/**" will literally lock down your application. The problem is that some resources need to be accessible at all times such as the login.jspx, the tags, the default template, images, CSS, etc. So you would need to explicitly permit access to these resources for the web app to work. More details of this can be found in the Spring Security documentation though.

    HTH
    Stefan Schmidt
    Software Engineer, Spring Roo
    SpringSource - a division of VMware
    twitter @schmidtstefan

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •