cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbernha...@apache.org
Subject cxf-fediz git commit: [Fediz-203] Making roles available for custom userInfoProvider
Date Fri, 28 Jul 2017 17:08:42 GMT
Repository: cxf-fediz
Updated Branches:
  refs/heads/1.4.x-fixes c107ceaf4 -> 76d2a8607


[Fediz-203] Making roles available for custom userInfoProvider


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

Branch: refs/heads/1.4.x-fixes
Commit: 76d2a8607faf2940c5a4e8bdaf544a27bc55b965
Parents: c107cea
Author: Jan Bernhardt <jbernhardt@talend.com>
Authored: Fri Jul 28 18:33:15 2017 +0200
Committer: Jan Bernhardt <jbernhardt@talend.com>
Committed: Fri Jul 28 19:08:08 2017 +0200

----------------------------------------------------------------------
 .../java/org/apache/cxf/fediz/service/oidc/FedizSubjectCreator.java | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf-fediz/blob/76d2a860/services/oidc/src/main/java/org/apache/cxf/fediz/service/oidc/FedizSubjectCreator.java
----------------------------------------------------------------------
diff --git a/services/oidc/src/main/java/org/apache/cxf/fediz/service/oidc/FedizSubjectCreator.java
b/services/oidc/src/main/java/org/apache/cxf/fediz/service/oidc/FedizSubjectCreator.java
index c2ebc1a..3708fca 100644
--- a/services/oidc/src/main/java/org/apache/cxf/fediz/service/oidc/FedizSubjectCreator.java
+++ b/services/oidc/src/main/java/org/apache/cxf/fediz/service/oidc/FedizSubjectCreator.java
@@ -86,6 +86,7 @@ public class FedizSubjectCreator implements SubjectCreator {
                                            fedizPrincipal.getRoleClaims(),
                                            params);
         oidcSub.setIdToken(idToken);
+        oidcSub.setRoles(fedizPrincipal.getRoleClaims());
         // UserInfo can be populated and set on OidcUserSubject too.
         // UserInfoService will create it otherwise.
 


Mime
View raw message