<filter>
<filter-name>CAS Filter</filter-name>
<filter-class>edu.yale.its.tp.cas.client.filter.CASFilter</filter-class>
<init-param>
<param-name>edu.yale.its.tp.cas.client.filter.loginUrl</param-name>
<param-value>https://casserver:8443/cas/login</param-value>
<!-- casserver是cas服务器的地址 -->
</init-param>
<init-param>
<param-name>edu.yale.its.tp.cas.client.filter.validateUrl</param-name>
<param-value>https:// casserver:8443/cas/serviceValidate</param-value>
</init-param>
<init-param>
<param-name>edu.yale.its.tp.cas.client.filter.serverName</param-name>
<param-value>server1:8080</param-value>
<!--注意,这里server1是cas客户端(接入CAS的子系统)的地址 -->
</init-param>
</filter>
<filter-mapping>
<filter-name>CAS Filter</filter-name>
<!--对访问子系统的所有连接进行拦截,转向cas服务器端验证,验证通过后就不会被拦截了-->
<url-pattern>/*</url-pattern>
</filter-mapping>
|