需要登录验证的所有应用都通过在web.xml里面配置filter:
有需要jar包cas-client-core-3.3.3.jar及log相关的jar包
以下filter的配置顺序是固定的不能改变
AuthenticationFilter
TicketValidationFilter
HttpServletRequestWrapperFilter
AssertionThreadLocalFilter
用户验证
CAS Authentication Filter
org.jasig.cas.client.authentication.AuthenticationFilter
casServerLoginUrl
https://localhost:8443/casweb/login(这个local必须与前面证书配置的CN的名字一样)
serverName
http://yourAppurl:port/
CAS Authentication Filter
/*
ticket验证
CAS Validation Filter
org.jasig.cas.client.validation.Cas20ProxyReceivingTicketValidationFilter
casServerUrlPrefix
https://localhost:8443/casweb(同上)
serverName
http://yourAPPurl:port/(如http:www.baidu.com:8080)
CAS Validation Filter
/*
下面两个filter包装后用以通过request来获取用户信息比如获取用户名可以通过request.getU