CXF-7382 - Fix to properly remove tokens from the message
Project: http://git-wip-us.apache.org/repos/asf/cxf/repo Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/1523ba65 Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/1523ba65 Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/1523ba65 Branch: refs/heads/master Commit: 1523ba65047ea3dc707ef4d80526e7629cba7c14 Parents: 762093f Author: Colm O hEigeartaigh <[email protected]> Authored: Thu May 25 12:56:01 2017 +0100 Committer: Colm O hEigeartaigh <[email protected]> Committed: Thu May 25 12:56:01 2017 +0100 ---------------------------------------------------------------------- .../org/apache/cxf/ws/security/trust/DefaultSTSTokenCacher.java | 1 + 1 file changed, 1 insertion(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cxf/blob/1523ba65/rt/ws/security/src/main/java/org/apache/cxf/ws/security/trust/DefaultSTSTokenCacher.java ---------------------------------------------------------------------- diff --git a/rt/ws/security/src/main/java/org/apache/cxf/ws/security/trust/DefaultSTSTokenCacher.java b/rt/ws/security/src/main/java/org/apache/cxf/ws/security/trust/DefaultSTSTokenCacher.java index 3387fe7..4ef4ab4 100644 --- a/rt/ws/security/src/main/java/org/apache/cxf/ws/security/trust/DefaultSTSTokenCacher.java +++ b/rt/ws/security/src/main/java/org/apache/cxf/ws/security/trust/DefaultSTSTokenCacher.java @@ -129,6 +129,7 @@ public class DefaultSTSTokenCacher implements STSTokenCacher { message.getExchange().getEndpoint().remove(SecurityConstants.TOKEN_ID); message.getExchange().remove(SecurityConstants.TOKEN_ID); message.getExchange().remove(SecurityConstants.TOKEN); + message.resetContextCache(); if (securityToken != null) { TokenStoreUtils.getTokenStore(message).remove(securityToken.getId()); }
