cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject [1/2] cxf-fediz git commit: Updating Spring LogoutFilter to work with Spring 3.2
Date Tue, 19 Jan 2016 12:47:12 GMT
Repository: cxf-fediz
Updated Branches:
  refs/heads/master 445e34089 -> c820b5a5e


Updating Spring LogoutFilter to work with Spring 3.2


Project: http://git-wip-us.apache.org/repos/asf/cxf-fediz/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf-fediz/commit/1f3ca8a9
Tree: http://git-wip-us.apache.org/repos/asf/cxf-fediz/tree/1f3ca8a9
Diff: http://git-wip-us.apache.org/repos/asf/cxf-fediz/diff/1f3ca8a9

Branch: refs/heads/master
Commit: 1f3ca8a96f6c6fb03fa3529ddaae98f86170de41
Parents: 445e340
Author: Colm O hEigeartaigh <coheigea@apache.org>
Authored: Tue Jan 19 12:06:43 2016 +0000
Committer: Colm O hEigeartaigh <coheigea@apache.org>
Committed: Tue Jan 19 12:06:43 2016 +0000

----------------------------------------------------------------------
 .../apache/cxf/fediz/spring/web/FederationLogoutFilter.java  | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf-fediz/blob/1f3ca8a9/plugins/spring/src/main/java/org/apache/cxf/fediz/spring/web/FederationLogoutFilter.java
----------------------------------------------------------------------
diff --git a/plugins/spring/src/main/java/org/apache/cxf/fediz/spring/web/FederationLogoutFilter.java
b/plugins/spring/src/main/java/org/apache/cxf/fediz/spring/web/FederationLogoutFilter.java
index 2e02460..f8f3f3a 100644
--- a/plugins/spring/src/main/java/org/apache/cxf/fediz/spring/web/FederationLogoutFilter.java
+++ b/plugins/spring/src/main/java/org/apache/cxf/fediz/spring/web/FederationLogoutFilter.java
@@ -26,6 +26,7 @@ import org.springframework.beans.factory.annotation.Required;
 import org.springframework.security.web.authentication.logout.LogoutFilter;
 import org.springframework.security.web.authentication.logout.LogoutHandler;
 import org.springframework.security.web.authentication.logout.LogoutSuccessHandler;
+import org.springframework.security.web.util.matcher.AntPathRequestMatcher;
 
 public class FederationLogoutFilter extends LogoutFilter {
 
@@ -51,17 +52,12 @@ public class FederationLogoutFilter extends LogoutFilter {
             this.logoutUrl = federationConfig.getFedizContext(contextName).getLogoutURL();
         }
         if (this.logoutUrl != null && !this.logoutUrl.isEmpty()) {
-            super.setFilterProcessesUrl(this.logoutUrl);
+            super.setLogoutRequestMatcher(new AntPathRequestMatcher(logoutUrl));
             return super.requiresLogout(request, response);
         }
         return false;
     }
 
-    public void setFilterProcessesUrl(String filterProcessesUrl) {
-        throw new UnsupportedOperationException(
-                "setFilterProcessesUrl() unsupported. Use fediz config to configure logout
url");
-    }
-
     protected String getFilterProcessesUrl() {
         return this.logoutUrl;
     }


Mime
View raw message