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:07:07 GMT
Repository: cxf-fediz
Updated Branches:
  refs/heads/master 5865dcf58 -> 935d02631


[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/935d0263
Tree: http://git-wip-us.apache.org/repos/asf/cxf-fediz/tree/935d0263
Diff: http://git-wip-us.apache.org/repos/asf/cxf-fediz/diff/935d0263

Branch: refs/heads/master
Commit: 935d026311f65ef3e76cddad3af95d1ff96ad026
Parents: 5865dcf
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:06:36 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/935d0263/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