Results 1 to 2 of 2

Thread: intercept-url configuration

  1. #1
    Join Date
    Jul 2011
    Posts
    12

    Default intercept-url configuration

    Hello,

    I'm hoping someone can help me. My config is set up below. I'm trying to secure down my app. I want it to have to be authenticated (logged in) everywhere you go, thus the /**. The problem is the Login page is being treated as protected area and I get stuck in an infinite loop in the browser, like it is just ignoring the permitAll. The "Login" form is a spring mvc form in site of MySite. Any suggestions?

    Code:
    <http auto-config="true" use-expressions="true" create-session="never">
    		<intercept-url pattern="http://localhost:8080/MySite/Login" access="permitAll" />          
    		<intercept-url pattern="http://localhost:8080/MySite/Login/**" 	access="permitAll" /> 
    		<intercept-url pattern="/**" access="isAuthenticated()" /> 
    		<form-login login-page="${myWoodmen.security.form.login}" />
    		
    		<logout logout-success-url="http://localhost:8080/MyWoodmen/Login" />
    
    		<remember-me key="AppKey123456" services-ref="mySiteRememberMeService" />
    	</http>

  2. #2
    Join Date
    Jul 2012
    Posts
    22

    Default

    I am not a Spring Security specialist, but maybe you should try first short patterns (/Login* instead of http://localhost:8080/MySite/Login), just like in the documentation example and than test if your browser goes exactly to expected page?

    UPD: Sorry, I haven't seen your previous post before.
    Last edited by Lsync; Sep 28th, 2012 at 05:33 AM.

Posting Permissions

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