Announcement Announcement Module
Collapse
No announcement yet.
Permit context root url but authenticate others ? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Permit context root url but authenticate others ?

    Hi,

    This may perhaps be a silly question but I cannot work out how to allow the url http://serverort/context/ and one other url but require authentication for all other urls.

    I have configured:

    Code:
        <sec:http pattern="/" security="none"/>
        <sec:http pattern="/css/**" security="none"/>
        <sec:http pattern="/images/**" security="none"/>
        <sec:http pattern="/js/**" security="none"/>
        
        <sec:http auto-config="true" entry-point-ref="casAuthEntryPoint" use-expressions="true">
        	<sec:intercept-url pattern="/UseCase/**" access="permitAll"/>
            <sec:intercept-url pattern="/Protected" access="isAuthenticated()"/>
            <sec:intercept-url pattern="/**" access="denyAll" />
            
            <sec:custom-filter ref="casAuthenticationFilter" position="CAS_FILTER"/>     
            <sec:logout />
        </sec:http>
    but I am still required to authenticate for /

    Any ideas ?

    Thanks.
Working...
X