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

發佈了91 篇原創文章 · 獲贊 160 · 訪問量 49萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章