cas logout以后转到原登录页

来源:互联网 发布:three.js vr全景漫游 编辑:程序博客网 时间:2024/04/29 10:04

如果不想用cas默认的log out页面,而是跳转到自己的登陆页,可以采用以下方式:

修改cas-server-webapp中的webapp/WEB-INF/cas-servlet.xml

将<bean id="logoutController" 下面的p:followServiceRedirects 设置为true。

即:

<bean id="logoutController" class="org.jasig.cas.web.LogoutController"        p:centralAuthenticationService-ref="centralAuthenticationService"        p:logoutView="casLogoutView"        p:warnCookieGenerator-ref="warnCookieGenerator"        p:ticketGrantingTicketCookieGenerator-ref="ticketGrantingTicketCookieGenerator"        p:servicesManager-ref="servicesManager"        p:followServiceRedirects="true"/>

这样,当访问cas的logout页面,并且后面带有?service=xxx,就会跳转到xxx页面

0 0
原创粉丝点击