cas 单点退出后跳转地址

cas单点退出直接链接到服务器的logout地址,为了使退出后能返回原来的项目,需要做的修改。

1.服务端cas-servlet.xml配置

<bean id="logoutController" class="org.jasig.cas.web.LogoutController" ... .../>

增加属性 p:followServiceRedirects="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>

猜你喜欢

转载自happyqing.iteye.com/blog/1934087