Repository: cxf Updated Branches: refs/heads/3.1.x-fixes 6fc117a3b -> 16dd8a3ea
One more Jcache provider update Project: http://git-wip-us.apache.org/repos/asf/cxf/repo Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/16dd8a3e Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/16dd8a3e Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/16dd8a3e Branch: refs/heads/3.1.x-fixes Commit: 16dd8a3eab9666ff42b91990b0bcc8b7708ed952 Parents: 6fc117a Author: Sergey Beryozkin <[email protected]> Authored: Fri Jun 2 22:46:21 2017 +0100 Committer: Sergey Beryozkin <[email protected]> Committed: Fri Jun 2 22:47:44 2017 +0100 ---------------------------------------------------------------------- .../cxf/rs/security/oauth2/grants/code/JCacheCodeDataProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cxf/blob/16dd8a3e/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/grants/code/JCacheCodeDataProvider.java ---------------------------------------------------------------------- diff --git a/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/grants/code/JCacheCodeDataProvider.java b/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/grants/code/JCacheCodeDataProvider.java index 56b12d4..0b9e2f3 100644 --- a/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/grants/code/JCacheCodeDataProvider.java +++ b/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/grants/code/JCacheCodeDataProvider.java @@ -85,7 +85,7 @@ public class JCacheCodeDataProvider extends JCacheOAuthDataProvider Cache.Entry<String, ServerAuthorizationCodeGrant> entry = it.next(); ServerAuthorizationCodeGrant grant = entry.getValue(); - if (!isExpired(grant)) { + if (isExpired(grant)) { toRemove.add(entry.getKey()); } else if (AbstractCodeDataProvider.isCodeMatched(grant, c, sub)) { grants.add(grant);
