CAS登出问题

zhaokc1104 2011-05-29 04:18:44
看了一些CAS登出的资料, 说把请求重定向到https://casserver:8443/cas/logout
就可以了, 看了下CASServer的登出时的代码如下:
final String ticketGrantingTicketId = this.ticketGrantingTicketCookieGenerator.retrieveCookieValue(request);
final String service = request.getParameter("service");

if (ticketGrantingTicketId != null) {
this.centralAuthenticationService
.destroyTicketGrantingTicket(ticketGrantingTicketId);

this.ticketGrantingTicketCookieGenerator.removeCookie(response);
this.warnCookieGenerator.removeCookie(response);
}
登出请求来了后,会检测用户的TCG Cookie,把对应的session清除
但是 我这里 获取到的ticketGrantingTicketId 都是NULL 啊, 根本走不到this.centralAuthenticationService
.destroyTicketGrantingTicket(ticketGrantingTicketId);
代码。。 是怎么回事?

...全文
223 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

10,608

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 其他
社区管理员
  • 其他
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧