Are you sure the ROLE_ANONYMOUS is automatically given to the user?

Perhaps this gives you some clue? 

http://static.springframework.org/spring-security/site/reference/html/anonymous.html

Martijn

On Thu, 2008-08-07 at 15:43 -0700, kace wrote:
> I tried that on the default welcome page which only shows / and it didnt work
> there but if I clicked on a link from that page and I employed an
> intercept-url on that ie /page2 the following worked
> 
> <security:intercept-url pattern="/page2*" access="ROLE_ADMIN"/>
> 
> however, having this 
> 
> <security:intercept-url pattern="/page2*" access="ROLE_ANONYMOUS"/>
> 
> resulted in the login page being shown too. But having this
> 
> <security:intercept-url pattern="/page2*.*" access="ROLE_ANONYMOUS"/>
> 
> did work.
> 
> Then I tried
> 
> <security:intercept-url pattern="/page2*.*" access="ROLE_ADMIN"/>
> 
> and it didnt work.
>  
> Not sure what is going on here or what I am doing wrong.  Mess about with it
> some more I guess..
> 
> ..kace
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to