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

有关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
    关注
    评论

报告相同问题?

悬赏问题

  • ¥15 求差集那个函数有问题,有无佬可以解决
  • ¥15 MATLAB动图问题
  • ¥15 【提问】基于Invest的水源涵养
  • ¥20 微信网友居然可以通过vx号找到我绑的手机号
  • ¥15 寻一个支付宝扫码远程授权登录的软件助手app
  • ¥15 解riccati方程组
  • ¥15 display:none;样式在嵌套结构中的已设置了display样式的元素上不起作用?
  • ¥15 使用rabbitMQ 消息队列作为url源进行多线程爬取时,总有几个url没有处理的问题。
  • ¥15 Ubuntu在安装序列比对软件STAR时出现报错如何解决
  • ¥50 树莓派安卓APK系统签名