<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	   xmlns:p="http://www.springframework.org/schema/p"
       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
	<!--org.springframework.beans.factory.config.PropertyPlaceholderConfigurer-->
	<bean id="propertyPlaceholderConfigurer"
          class="com.kingdee.eas.cp.eip.sso.util.EASPropertyPlaceholderConfigurer">
		<property name="location"
                  value="/WEB-INF/sso/ssoParamemter.properties"/>
		<property name="systemPropertiesLocation"
                  value="ssoClient.properties"/>
		<property name="systemPropertiesMode"
                  value="2"/>
	</bean>
	<!-- 竹云单点认证过滤器 -->
	<bean id="casAuthenticationFilter" class="com.qy.sso.bamboocloud.filter.authentication.ZYPortalAuthenticationFilter"
          p:serverLoginUrl="${cas.server.url}${cas.server.loginPath}"
          p:serverName="${cas.client.serverName}"
		  p:renew="${cas.server.renew}"
		  p:gateway="${cas.server.gateway}"
		  p:getServerNameFromRequest="${sso.client.serverNameFromRequest}"
		  p:getServerLoginUrlFromRequest="${sso.server.loginUrlFromRequest}"
		  p:encodeServiceUrl="false"
		  p:clientId="${cas.server.clientId}"
		  p:responseType="${cas.server.responseType}"		  
		/>
	<!-- getServerLoginUrlFromRequest=false is for the communication between portal and eassso using local net, also for resolving problems under certain firewall enviroment.  -->
	<!-- 竹云用户信息校验过滤器 -->
	<bean id="casTicketValidationFilter" class="com.qy.sso.bamboocloud.filter.validate.ZYTicketValidationFilter"
		  p:casServerUrlPrefix="${cas.server.url}"
		  p:serverName="${cas.client.serverName}"
		  p:renew="${cas.server.renew}"
		  p:getServerNameFromRequest="${sso.client.serverNameFromRequest}"
		  p:getServerLoginUrlFromRequest="false"
		  p:redirectAfterValidation="true"
		  p:exceptionOnValidationFailure="true"
		  p:useSession="true"
		  p:getTokenPath="${cas.server.url}${cas.server.getTokenPath}"
		  p:getUserInfoPath="${cas.server.url}${cas.server.getUserInfoPath}"
		  p:clientId="${cas.server.clientId}"
		  p:responseType="${cas.server.responseType}"
		  p:clientSecret="${cas.server.clientSecret}"
		  p:grantType="${cas.server.grantType}"
		/>
</beans>