cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject cxf-fediz git commit: Minor updates to the data provider
Date Fri, 27 Nov 2015 14:58:49 GMT
Repository: cxf-fediz
Updated Branches:
  refs/heads/master 0b096f713 -> db59a5075


Minor updates to the data provider


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

Branch: refs/heads/master
Commit: db59a5075ac5c2b5f9cdd35dd321dd9a033f3dec
Parents: 0b096f7
Author: Sergey Beryozkin <sberyozkin@gmail.com>
Authored: Fri Nov 27 14:58:29 2015 +0000
Committer: Sergey Beryozkin <sberyozkin@gmail.com>
Committed: Fri Nov 27 14:58:29 2015 +0000

----------------------------------------------------------------------
 .../apache/cxf/fediz/service/oidc/OAuthDataManager.java   | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf-fediz/blob/db59a507/services/oidc/src/main/java/org/apache/cxf/fediz/service/oidc/OAuthDataManager.java
----------------------------------------------------------------------
diff --git a/services/oidc/src/main/java/org/apache/cxf/fediz/service/oidc/OAuthDataManager.java
b/services/oidc/src/main/java/org/apache/cxf/fediz/service/oidc/OAuthDataManager.java
index 64a562e..c4011d8 100644
--- a/services/oidc/src/main/java/org/apache/cxf/fediz/service/oidc/OAuthDataManager.java
+++ b/services/oidc/src/main/java/org/apache/cxf/fediz/service/oidc/OAuthDataManager.java
@@ -71,20 +71,18 @@ public class OAuthDataManager extends DefaultEHCacheCodeDataProvider {
         this.permissionMap = permissionMap;
     }
     
-    // Grants
     @Override
-    public ServerAuthorizationCodeGrant createCodeGrant(AuthorizationCodeRegistration reg)

+    protected ServerAuthorizationCodeGrant doCreateCodeGrant(AuthorizationCodeRegistration
reg) 
         throws OAuthServiceException {
-        ServerAuthorizationCodeGrant grant = super.createCodeGrant(reg);
+        ServerAuthorizationCodeGrant grant = super.doCreateCodeGrant(reg);
         createIdToken(grant.getClient(), grant.getSubject(), reg.getNonce());
         return grant;
     }
     
-    // Access Tokens
     @Override
-    public ServerAccessToken createAccessToken(AccessTokenRegistration reg)
+    protected ServerAccessToken doCreateAccessToken(AccessTokenRegistration reg)
         throws OAuthServiceException {
-        ServerAccessToken token = super.createAccessToken(reg);
+        ServerAccessToken token = super.doCreateAccessToken(reg);
         createIdToken(token.getClient(), token.getSubject(), reg.getNonce());
         return token;
     }


Mime
View raw message