Step One
On the CAS server side, set/webcontent/web-inf/cas-servlet.xml:
<id= "LogoutAction" class= "Org.jasig.cas.web.flow.LogoutAction" p:servicesmanager-ref= "Servicesmanager" p:followserviceredirects = "${cas.logout.followserviceredirects:true}" />
Change Cas.logout.followServiceRedirects from False to True, the default is false, which means that after logging off, you are allowed to jump to the custom client.
Of course, some versions of the modified Bean are not logoutaction, or may be logoutcontroller.
Step Two
On the CAS clinet side, configure the path to logoff.
For example, the address of CAS server is Cas.test.com,cas client address is client.test.com, then the logoff path is:
http://cas.test.com/cas/logout?service=http://client.test.com/
Tips:clinet if it is a spring project, direct access to http://client.test.com/should be to jump to index.jsp page, we can customize a CAS filter, let the request to visit index.jsp page, jump to the CAs The login page for the server.
CAS Combat Custom Logoff