Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

cas custom logout

while implementing jasig-CAS I've faced the next problem: I want to implement the logout. For now it works fine, but I want CAS server to redirect the user after logging out to the server where the request came from(for instance, http://localhost:8080/myApp). I've tried to add "service" in security context, but nothing happened here is a piece of my spring security context:

<security:logout logout-url="/logout"
                        logout-success-url="https://localhost:9543/cas-server-webapp-3.4.10/logout?service=http://localhost:8080/myApp" 
                        invalidate-session="true" />

all configs and procedures are taken from this manual.

like image 947
John Smith Avatar asked Oct 09 '12 10:10

John Smith


1 Answers

Does this helps from default cas-servlet.xml

 <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="${cas.logout.followServiceRedirects:false}"/>

Look at last line ${cas.logout.followServiceRedirects:false}.

like image 173
Aleksandr M Avatar answered Sep 30 '22 05:09

Aleksandr M