You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by se...@apache.org on 2016/04/08 17:36:58 UTC

cxf-fediz git commit: Minor update to the Clients service

Repository: cxf-fediz
Updated Branches:
  refs/heads/master 3fec4ba75 -> 32855169a


Minor update to the Clients service


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

Branch: refs/heads/master
Commit: 32855169a5f52d917bf59923e1787700074b95f3
Parents: 3fec4ba
Author: Sergey Beryozkin <sb...@gmail.com>
Authored: Fri Apr 8 16:36:42 2016 +0100
Committer: Sergey Beryozkin <sb...@gmail.com>
Committed: Fri Apr 8 16:36:42 2016 +0100

----------------------------------------------------------------------
 .../cxf/fediz/service/oidc/clients/ClientRegistrationService.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf-fediz/blob/32855169/services/oidc/src/main/java/org/apache/cxf/fediz/service/oidc/clients/ClientRegistrationService.java
----------------------------------------------------------------------
diff --git a/services/oidc/src/main/java/org/apache/cxf/fediz/service/oidc/clients/ClientRegistrationService.java b/services/oidc/src/main/java/org/apache/cxf/fediz/service/oidc/clients/ClientRegistrationService.java
index 228f286..9fae783 100644
--- a/services/oidc/src/main/java/org/apache/cxf/fediz/service/oidc/clients/ClientRegistrationService.java
+++ b/services/oidc/src/main/java/org/apache/cxf/fediz/service/oidc/clients/ClientRegistrationService.java
@@ -191,8 +191,9 @@ public class ClientRegistrationService {
     public ClientCodeGrants getClientCodeGrants(@PathParam("id") String id) {
         if (dataProvider instanceof AuthorizationCodeDataProvider) {
             Client c = getRegisteredClient(id);
+            UserSubject subject = new UserSubject(getUserName());
             List<ServerAuthorizationCodeGrant> codeGrants = new ArrayList<ServerAuthorizationCodeGrant>(
-               ((AuthorizationCodeDataProvider)dataProvider).getCodeGrants(c, null));
+               ((AuthorizationCodeDataProvider)dataProvider).getCodeGrants(c, subject));
             Collections.sort(codeGrants, new CodeGrantComparator());
             return new ClientCodeGrants(c, codeGrants);
         }