gkgln 2016-12-16 12:36 采纳率: 0%
浏览 1873

有关cas单点登录中,web.xml配置文件中过滤器的配置问题

http://blog.csdn.net/rogerjava/article/details/6555175
这个链接中的博主采用的是:

edu.yale.its.tp.cas.client.filter.CASFilter

这个过滤器。

而在许多其他文档中,有许多配置的过滤器是:

CAS Authentication Filter
org.jasig.cas.client.authentication.AuthenticationFilter

casServerLoginUrl
http://localhost:8080/casweb/login

而在官方文档中中:https://wiki.jasig.org/display/CASC/Using+CASFilter
对于第一种过滤器,有一句解释:In this case, any URL beneath /webapp/cas-protected would require a CAS login. If you want to protect your entire web application, you can simply put /* for the URL pattern
可以看出重点是需要登录
而第二种过滤器,在这篇文章中:http://www.cnblogs.com/davidwang456/p/3962786.html
有一句解释;The AuthenticationFilter is what detects whether a user needs to be authenticated or not. If a user needs to be authenticated, it will redirect the user to the CAS server.
是用来判断一个用户是否需要认证,如果用户需要认证,则重定向这个用户跳转到cas服务器

到现在我也没区分开这两个过滤器之间的关系,有大牛能帮忙解答一下吗,小白,暂时没有分,不好意思

  • 写回答

2条回答

  • devmiao 2016-12-16 15:57
    关注
    评论

报告相同问题?

悬赏问题

  • ¥50 如何增强飞上天的树莓派的热点信号强度,以使得笔记本可以在地面实现远程桌面连接
  • ¥15 MCNP里如何定义多个源?
  • ¥20 双层网络上信息-疾病传播
  • ¥50 paddlepaddle pinn
  • ¥20 idea运行测试代码报错问题
  • ¥15 网络监控:网络故障告警通知
  • ¥15 django项目运行报编码错误
  • ¥15 请问这个是什么意思?
  • ¥15 STM32驱动继电器
  • ¥15 Windows server update services