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: Fixing ClientRegService
Date Mon, 25 Jan 2016 14:24:00 GMT
Repository: cxf-fediz
Updated Branches:
  refs/heads/master 8b2f47b02 -> 82aba444a


Fixing ClientRegService


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

Branch: refs/heads/master
Commit: 82aba444a8d05ef6ef03c11e5b3a534d46615d71
Parents: 8b2f47b
Author: Sergey Beryozkin <sberyozkin@gmail.com>
Authored: Mon Jan 25 14:23:44 2016 +0000
Committer: Sergey Beryozkin <sberyozkin@gmail.com>
Committed: Mon Jan 25 14:23:44 2016 +0000

----------------------------------------------------------------------
 .../cxf/fediz/service/oidc/ClientRegistrationService.java     | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf-fediz/blob/82aba444/services/oidc/src/main/java/org/apache/cxf/fediz/service/oidc/ClientRegistrationService.java
----------------------------------------------------------------------
diff --git a/services/oidc/src/main/java/org/apache/cxf/fediz/service/oidc/ClientRegistrationService.java
b/services/oidc/src/main/java/org/apache/cxf/fediz/service/oidc/ClientRegistrationService.java
index 441c9e7..de900ba 100644
--- a/services/oidc/src/main/java/org/apache/cxf/fediz/service/oidc/ClientRegistrationService.java
+++ b/services/oidc/src/main/java/org/apache/cxf/fediz/service/oidc/ClientRegistrationService.java
@@ -133,8 +133,8 @@ public class ClientRegistrationService {
     
     protected ClientTokens doGetClientIssuedTokens(Client c) {
         return new ClientTokens(c, 
-                                      dataProvider.getAccessTokens(c),
-                                      dataProvider.getRefreshTokens(c));
+                                dataProvider.getAccessTokens(c, null),
+                                dataProvider.getRefreshTokens(c, null));
     }
     @POST
     @Consumes(MediaType.APPLICATION_FORM_URLENCODED)
@@ -168,7 +168,8 @@ public class ClientRegistrationService {
     public ClientCodeGrants getClientCodeGrants(@PathParam("id") String id) {
         if (dataProvider instanceof AuthorizationCodeDataProvider) {
             Client c = getRegisteredClient(id);
-            return new ClientCodeGrants(c, ((AuthorizationCodeDataProvider)dataProvider).getCodeGrants(c));
+            return new ClientCodeGrants(c, 
+                    ((AuthorizationCodeDataProvider)dataProvider).getCodeGrants(c, null));
         }
         return null;
     }


Mime
View raw message