天天看點

單點登入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。