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 update to the Clients service
Date Fri, 08 Apr 2016 15:36:58 GMT
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 <sberyozkin@gmail.com>
Authored: Fri Apr 8 16:36:42 2016 +0100
Committer: Sergey Beryozkin <sberyozkin@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);
         }


Mime
View raw message