You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by co...@apache.org on 2018/11/29 11:08:38 UTC

[cxf] 02/03: Make it possible to set storeJwtTokenKeyOnly via the full constructor of JCacheOAuthDataProvider

This is an automated email from the ASF dual-hosted git repository.

coheigea pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cxf.git

commit e72cf639d619dc8aee80b5c386b2479cc935294c
Author: Colm O hEigeartaigh <co...@apache.org>
AuthorDate: Thu Nov 29 10:13:01 2018 +0000

    Make it possible to set storeJwtTokenKeyOnly via the full constructor of JCacheOAuthDataProvider
---
 .../security/oauth2/grants/code/JCacheCodeDataProvider.java | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

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 82522a8..03988dd 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
@@ -55,10 +55,21 @@ public class JCacheCodeDataProvider extends JCacheOAuthDataProvider
                                      String codeCacheKey,
                                      String accessTokenKey,
                                      String refreshTokenKey) throws Exception {
-        super(configFileURL, bus, clientCacheKey, accessTokenKey, refreshTokenKey);
+        this(configFileURL, bus, clientCacheKey, codeCacheKey, accessTokenKey, refreshTokenKey, false);
+    }
+
+    protected JCacheCodeDataProvider(String configFileURL,
+                                     Bus bus,
+                                     String clientCacheKey,
+                                     String codeCacheKey,
+                                     String accessTokenKey,
+                                     String refreshTokenKey,
+                                     boolean storeJwtTokenKeyOnly) throws Exception {
+        super(configFileURL, bus, clientCacheKey, accessTokenKey, refreshTokenKey, storeJwtTokenKeyOnly);
         grantCache = createCache(cacheManager, codeCacheKey, String.class, ServerAuthorizationCodeGrant.class);
     }
 
+
     @Override
     protected void doRemoveClient(Client c) {
         for (ServerAuthorizationCodeGrant grant : getCodeGrants(c, null)) {