问题:cas单点注销后,再次登录不能返回原单点注销的系统问题。
cassso-servlet.xml
<bean id="logoutController" class="org.jasig.cas.web.LogoutController"
p:centralAuthenticationService-ref="centralAuthenticationService"
p:logoutView="casLogoutView"
p:followServiceRedirects="true"
p:warnCookieGenerator-ref="warnCookieGenerator"
p:ticketGrantingTicketCookieGenerator-ref="ticketGrantingTicketCookieGenerator" />
p:centralAuthenticationService-ref="centralAuthenticationService"
p:logoutView="casLogoutView"
p:followServiceRedirects="true"
p:warnCookieGenerator-ref="warnCookieGenerator"
p:ticketGrantingTicketCookieGenerator-ref="ticketGrantingTicketCookieGenerator" />
新增:p:followServiceRedirects="true"这一句,在单点注销跳转到登录页面时就会将接收的参数传递给登录页面,登录后就会跳转到参数指定的页面(即原单点注销前的页面)。
原单点注销的系统需要在注销url中增加参数当前系统的访问地址参数,以便登录后跳转过来。