From 6e06789a28483bdf078a4725f5e43b207c0d0d89 Mon Sep 17 00:00:00 2001 From: Luke Taylor Date: Mon, 28 Jul 2008 10:53:55 +0000 Subject: [PATCH] SEC-937: Added CAS logout filter to sample application --- .../WEB-INF/applicationContext-security.xml | 16 ++++++++-------- .../cas/client/src/main/webapp/WEB-INF/web.xml | 14 ++++++++++++++ .../cas/client/src/main/webapp/cas-logout.jsp | 15 +++++++++++++++ 3 files changed, 37 insertions(+), 8 deletions(-) create mode 100644 samples/cas/client/src/main/webapp/cas-logout.jsp diff --git a/samples/cas/client/src/main/webapp/WEB-INF/applicationContext-security.xml b/samples/cas/client/src/main/webapp/WEB-INF/applicationContext-security.xml index 4ad046f289..0b3c75d765 100644 --- a/samples/cas/client/src/main/webapp/WEB-INF/applicationContext-security.xml +++ b/samples/cas/client/src/main/webapp/WEB-INF/applicationContext-security.xml @@ -8,7 +8,7 @@ - + @@ -17,8 +17,8 @@ - - + + @@ -33,14 +33,14 @@ - - + + - - - + + + diff --git a/samples/cas/client/src/main/webapp/WEB-INF/web.xml b/samples/cas/client/src/main/webapp/WEB-INF/web.xml index 4fdd76b395..f5b60bf375 100644 --- a/samples/cas/client/src/main/webapp/WEB-INF/web.xml +++ b/samples/cas/client/src/main/webapp/WEB-INF/web.xml @@ -27,11 +27,21 @@ /WEB-INF/classes/log4j.properties + + CAS Single Sign Out Filter + org.jasig.cas.client.session.SingleSignOutFilter + + springSecurityFilterChain org.springframework.web.filter.DelegatingFilterProxy + + CAS Single Sign Out Filter + /* + + springSecurityFilterChain /* @@ -42,6 +52,10 @@ - The application context is then available via - WebApplicationContextUtils.getWebApplicationContext(servletContext). --> + + org.jasig.cas.client.session.SingleSignOutHttpSessionListener + + org.springframework.web.context.ContextLoaderListener diff --git a/samples/cas/client/src/main/webapp/cas-logout.jsp b/samples/cas/client/src/main/webapp/cas-logout.jsp new file mode 100644 index 0000000000..36f6d2b9c6 --- /dev/null +++ b/samples/cas/client/src/main/webapp/cas-logout.jsp @@ -0,0 +1,15 @@ + + + + Single-sign out? + + + +

Do you want to log out of CAS?

+ +

You have logged out of this application, but may still have an active single-sign on session with CAS.

+ +

Logout of CAS

+ + + \ No newline at end of file