|
@@ -40,6 +40,12 @@
|
|
|
<property name="captchaEbabled" value="false"/>
|
|
|
<property name="captchaParam" value="captcha"/>
|
|
|
<property name="failureKeyAttribute" value="shiroLoginFailure"/>
|
|
|
+ </bean>
|
|
|
+ <bean id="sslFilter" class="org.apache.shiro.web.filter.authz.SslFilter">
|
|
|
+ <property name="port" value="8443"/>
|
|
|
+ </bean>
|
|
|
+ <bean id="httpFilter" class="com.xt.js.gkaq.common.HttpFilter">
|
|
|
+ <property name="port" value="8080"/>
|
|
|
</bean>
|
|
|
<bean id="shiroFilter" class="org.apache.shiro.spring.web.ShiroFilterFactoryBean">
|
|
|
<property name="securityManager" ref="securityManager" />
|
|
@@ -49,13 +55,16 @@
|
|
|
<map>
|
|
|
<entry key="authc" value-ref="gkaqFormAuthenticationFilter" />
|
|
|
<entry key="captchaValidate" value-ref="captchaValidateFilter"/>
|
|
|
+ <entry key="ssl" value-ref="sslFilter"/>
|
|
|
+ <entry key="http" value-ref="httpFilter"/>
|
|
|
<!-- <entry key="logout" value-ref="gkaqLogoutFilter" /> -->
|
|
|
</map>
|
|
|
</property>
|
|
|
<property name="filterChainDefinitions">
|
|
|
<value>
|
|
|
/favicon.ico = anon
|
|
|
- /login = captchaValidate,authc
|
|
|
+ /login = captchaValidate,authc,ssl
|
|
|
+ /index = authc,http
|
|
|
/logout = logout
|
|
|
/authCtl/** = anon
|
|
|
/static/** = anon
|