天天看点

单点登录cas常见问题(三) - 单点登出时,子系统是否同步登出?

答案是:子系统会同步登出。

可以跟踪源码(这里cas版本是4.x)

调用流程如下: terminateSessionAction.terminate(flowRequestContext)     centralAuthenticationService.destroyTicketGrantingTicket(tgtId)     实现类CentralAuthenticationServiceImpl.destroyTicketGrantingTicket(tgtId)         logoutManager.performLogout(ticket);         实现类LogoutManagerImpl.performLogout(ticket);             handleLogoutForSloService((SingleLogoutService) service, entry.getKey());             performBackChannelLogout(logoutRequest)                 httpClient.sendMessageToEndPoint(msg);

最后调用了httpClient通知子系统,子系统终结本地session。