Skip to content

Instantly share code, notes, and snippets.

@mente
Created December 21, 2011 11:12
Show Gist options
  • Save mente/1505659 to your computer and use it in GitHub Desktop.
Save mente/1505659 to your computer and use it in GitHub Desktop.
<bean id="shiroFilter" class="org.apache.shiro.spring.web.ShiroFilterFactoryBean" securityManager-ref="webSecurityManager" loginUrl="/login" successUrl="/accounts/profile">
<property name="filterChainDefinitionMap">
<map>
<entry key="/accounts/**" value="passThru"/>
<entry key="/login" value="passThru"/>
<entry key="/admin/**" value="passThru, roles[ADMIN]"/>
</map>
</property>
</bean>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment