I am trying to set up the environment using Spring MVC and Apache Shiro. I follow the articles listed on shiro.apache.org.
I am using Spring DelegatingFilterProxy as a Shiro filter in web.xml.
Current filtering is performed using:
<bean id="shiroFilter" class="org.apache.shiro.spring.web.ShiroFilterFactoryBean"> <property name="securityManager" ref="securityManager"/> <property name="loginUrl" value="/login"/> <property name="successUrl" value="/dashboard"/> <property name="unauthorizedUrl" value="/unauthorized"/> <property name="filterChainDefinitions"> <value> /** = authc, user, admin /admin/** = authc, admin /login = anon </value> </property> </bean>
The question is, how can I use the siro.ini file that defines the security settings?
source share