CAS登出问题
看了一些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);
代码。。 是怎么回事?