cas单点退出直接链接到服务器的logout地址,为了使退出后能返回原来的项目,需要做的修改。
1.服务端cas-servlet.xml配置
<bean id="logoutController" class="org.jasig.cas.web.LogoutController" ... .../>
把属性p:followServiceRedirects="${cas.logout.followServiceRedirects:false}" 中的false改为true
2.退出的链接后加上?service=希望退出后返回的地址
例如 client1的退出 <a href="http://cas.google.com.cn/logout?service=http://client1.google.com.cn">退出</a>
client2的退出 <a href="http://cas.google.com.cn/logout?service=http://client2.google.com.cn">退出</a>
本文详细介绍了如何通过修改Cas服务端配置和链接参数,实现在退出登录时直接跳转到期望返回的项目页面,确保用户体验连续性。
1952

被折叠的 条评论
为什么被折叠?



