cas认证登陆时报错,求高手指点 AttributePrincipalImpl cannot be cast to CasAuthenticationToken

二哥学Java 发布于 2016/09/22 11:19
阅读 770
收藏 0
cas认证登陆时报错,求高手指点

java.lang.ClassCastException: org.jasig.cas.client.authentication.AttributePrincipalImpl cannot be cast to org.springframework.security.cas.authentication.CasAuthenticationToken
com.chinamobile.bcop.user.sso.UserInjectFilter.doFilter(UserInjectFilter.java:46)

UserInjectFilter.java:46的代码
CasAuthenticationToken principal = (CasAuthenticationToken) ((HttpServletRequest) httpRequest).getUserPrincipal();

加载中
返回顶部
顶部