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.
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}
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With