概述
需要登录验证的所有应用都通过在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.getUserPrincipal().getName();
CAS HttpServletRequest Wrapper Filter
org.jasig.cas.client.util.HttpServletRequestWrapperFilter
CAS HttpServletRequest Wrapper Filter
/*
CAS Assertion Thread Local Filter
org.jasig.cas.client.util.AssertionThreadLocalFilter
CAS Assertion Thread Local Filter
/*
最后
以上就是飞快含羞草为你收集整理的cas java客户端配置_cas单点登录配置之client配置(java)的全部内容,希望文章能够帮你解决cas java客户端配置_cas单点登录配置之client配置(java)所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复