cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject cxf git commit: Only create the TokenReplayCache if it is required
Date Mon, 18 Jan 2016 15:29:45 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.0.x-fixes 8bf60be53 -> f976a73c4


Only create the TokenReplayCache if it is required


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

Branch: refs/heads/3.0.x-fixes
Commit: f976a73c4ac47f419462c8e091c8fd541593b912
Parents: 8bf60be
Author: Colm O hEigeartaigh <coheigea@apache.org>
Authored: Mon Jan 18 15:28:40 2016 +0000
Committer: Colm O hEigeartaigh <coheigea@apache.org>
Committed: Mon Jan 18 15:29:40 2016 +0000

----------------------------------------------------------------------
 .../saml/sso/AbstractRequestAssertionConsumerHandler.java        | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/f976a73c/rt/rs/security/sso/saml/src/main/java/org/apache/cxf/rs/security/saml/sso/AbstractRequestAssertionConsumerHandler.java
----------------------------------------------------------------------
diff --git a/rt/rs/security/sso/saml/src/main/java/org/apache/cxf/rs/security/saml/sso/AbstractRequestAssertionConsumerHandler.java
b/rt/rs/security/sso/saml/src/main/java/org/apache/cxf/rs/security/saml/sso/AbstractRequestAssertionConsumerHandler.java
index 119556d..16afc2a 100644
--- a/rt/rs/security/sso/saml/src/main/java/org/apache/cxf/rs/security/saml/sso/AbstractRequestAssertionConsumerHandler.java
+++ b/rt/rs/security/sso/saml/src/main/java/org/apache/cxf/rs/security/saml/sso/AbstractRequestAssertionConsumerHandler.java
@@ -322,7 +322,9 @@ public abstract class AbstractRequestAssertionConsumerHandler extends
AbstractSS
             ssoResponseValidator.setEnforceAssertionsSigned(enforceAssertionsSigned);
             ssoResponseValidator.setEnforceResponseSigned(enforceResponseSigned);
             ssoResponseValidator.setEnforceKnownIssuer(enforceKnownIssuer);
-            ssoResponseValidator.setReplayCache(getReplayCache());
+            if (postBinding) {
+                ssoResponseValidator.setReplayCache(getReplayCache());
+            }
 
             return ssoResponseValidator.validateSamlResponse(samlResponse, postBinding);
         } catch (WSSecurityException ex) {


Mime
View raw message