mavisakal
Sep 24th, 2004, 09:11 AM
How can I prevent users from accessing files by writing file names in the address bar of the browser. I exactly want to allow users to access only the login.jsp without logging.
For instance how can I check the login for /jsp/** pattern in the following code? Or is there a better implementation?
(I can write all of the roles for it but administrator may add new ROLES in run time.)
bye.
<bean id="filterInvocationInterceptor" class="net.sf.acegisecurity.intercept.web.FilterSecurityI nterceptor">
<property name="authenticationManager"><ref bean="authenticationManager"/></property>
<property name="accessDecisionManager"><ref bean="accessDecisionManager"/></property>
<property name="objectDefinitionSource">
<value>
CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON
PATTERN_TYPE_APACHE_ANT
/secure/**=ROLE_SUPERVISOR
/jsp/**= ????????
</value>
</property>
</bean>
For instance how can I check the login for /jsp/** pattern in the following code? Or is there a better implementation?
(I can write all of the roles for it but administrator may add new ROLES in run time.)
bye.
<bean id="filterInvocationInterceptor" class="net.sf.acegisecurity.intercept.web.FilterSecurityI nterceptor">
<property name="authenticationManager"><ref bean="authenticationManager"/></property>
<property name="accessDecisionManager"><ref bean="accessDecisionManager"/></property>
<property name="objectDefinitionSource">
<value>
CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON
PATTERN_TYPE_APACHE_ANT
/secure/**=ROLE_SUPERVISOR
/jsp/**= ????????
</value>
</property>
</bean>