cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject svn commit: r1337253 - in /cxf/trunk/rt/rs/security/xml/src/main/java/org/apache/cxf/rs/security/saml/sso/filter: SamlPostBindingFilter.java SamlRedirectBindingFilter.java
Date Fri, 11 May 2012 16:17:35 GMT
Author: coheigea
Date: Fri May 11 16:17:34 2012
New Revision: 1337253

URL: http://svn.apache.org/viewvc?rev=1337253&view=rev
Log:
Correcting HTTP headers

Modified:
    cxf/trunk/rt/rs/security/xml/src/main/java/org/apache/cxf/rs/security/saml/sso/filter/SamlPostBindingFilter.java
    cxf/trunk/rt/rs/security/xml/src/main/java/org/apache/cxf/rs/security/saml/sso/filter/SamlRedirectBindingFilter.java

Modified: cxf/trunk/rt/rs/security/xml/src/main/java/org/apache/cxf/rs/security/saml/sso/filter/SamlPostBindingFilter.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/rs/security/xml/src/main/java/org/apache/cxf/rs/security/saml/sso/filter/SamlPostBindingFilter.java?rev=1337253&r1=1337252&r2=1337253&view=diff
==============================================================================
--- cxf/trunk/rt/rs/security/xml/src/main/java/org/apache/cxf/rs/security/saml/sso/filter/SamlPostBindingFilter.java
(original)
+++ cxf/trunk/rt/rs/security/xml/src/main/java/org/apache/cxf/rs/security/saml/sso/filter/SamlPostBindingFilter.java
Fri May 11 16:17:34 2012
@@ -19,6 +19,7 @@
 package org.apache.cxf.rs.security.saml.sso.filter;
 
 import javax.ws.rs.WebApplicationException;
+import javax.ws.rs.core.HttpHeaders;
 import javax.ws.rs.core.Response;
 
 import org.apache.cxf.jaxrs.model.ClassResourceInfo;
@@ -44,6 +45,8 @@ public class SamlPostBindingFilter exten
                 
                 return Response.ok(info)
                                .type("text/html")
+                               .header(HttpHeaders.CACHE_CONTROL, "no-cache, no-store")
+                               .header("Pragma", "no-cache") 
                                .build();
                 
             } catch (Exception ex) {

Modified: cxf/trunk/rt/rs/security/xml/src/main/java/org/apache/cxf/rs/security/saml/sso/filter/SamlRedirectBindingFilter.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/rs/security/xml/src/main/java/org/apache/cxf/rs/security/saml/sso/filter/SamlRedirectBindingFilter.java?rev=1337253&r1=1337252&r2=1337253&view=diff
==============================================================================
--- cxf/trunk/rt/rs/security/xml/src/main/java/org/apache/cxf/rs/security/saml/sso/filter/SamlRedirectBindingFilter.java
(original)
+++ cxf/trunk/rt/rs/security/xml/src/main/java/org/apache/cxf/rs/security/saml/sso/filter/SamlRedirectBindingFilter.java
Fri May 11 16:17:34 2012
@@ -44,7 +44,7 @@ public class SamlRedirectBindingFilter e
                                                     info.getWebAppContext());
                 
                 return Response.seeOther(ub.build())
-                               .header(HttpHeaders.CACHE_CONTROL, "no-store")
+                               .header(HttpHeaders.CACHE_CONTROL, "no-cache, no-store")
                                .header("Pragma", "no-cache") 
                                .header("Set-Cookie", contextCookie)
                                .build();



Mime
View raw message