cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject cxf git commit: Actually set the roles...
Date Wed, 17 Dec 2014 11:47:22 GMT
Repository: cxf
Updated Branches:
  refs/heads/master a40441153 -> 54a6e5648


Actually set the roles...


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

Branch: refs/heads/master
Commit: 54a6e56488798f60d764fcec9b4e208f5b56eaf1
Parents: a404411
Author: Colm O hEigeartaigh <coheigea@apache.org>
Authored: Wed Dec 17 11:47:12 2014 +0000
Committer: Colm O hEigeartaigh <coheigea@apache.org>
Committed: Wed Dec 17 11:47:12 2014 +0000

----------------------------------------------------------------------
 .../apache/cxf/sts/claims/ClaimsAttributeStatementProvider.java  | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/54a6e564/services/sts/sts-core/src/main/java/org/apache/cxf/sts/claims/ClaimsAttributeStatementProvider.java
----------------------------------------------------------------------
diff --git a/services/sts/sts-core/src/main/java/org/apache/cxf/sts/claims/ClaimsAttributeStatementProvider.java
b/services/sts/sts-core/src/main/java/org/apache/cxf/sts/claims/ClaimsAttributeStatementProvider.java
index 060c359..e5b0468 100644
--- a/services/sts/sts-core/src/main/java/org/apache/cxf/sts/claims/ClaimsAttributeStatementProvider.java
+++ b/services/sts/sts-core/src/main/java/org/apache/cxf/sts/claims/ClaimsAttributeStatementProvider.java
@@ -45,9 +45,11 @@ public class ClaimsAttributeStatementProvider implements AttributeStatementProvi
             params.setEncryptionProperties(providerParameters.getEncryptionProperties());
             params.setKeyRequirements(providerParameters.getKeyRequirements());
             if (providerParameters.getTokenRequirements().getOnBehalfOf() != null) {
-                params.setPrincipal(providerParameters.getTokenRequirements().getOnBehalfOf().getPrincipal());
   
+                params.setPrincipal(providerParameters.getTokenRequirements().getOnBehalfOf().getPrincipal());
+                params.setRoles(providerParameters.getTokenRequirements().getOnBehalfOf().getRoles());
             } else if (providerParameters.getTokenRequirements().getActAs() != null) {
                 params.setPrincipal(providerParameters.getTokenRequirements().getActAs().getPrincipal());
   
+                params.setRoles(providerParameters.getTokenRequirements().getActAs().getRoles());
             } else {
                 params.setPrincipal(providerParameters.getPrincipal());
             }


Mime
View raw message