cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject cxf git commit: Preserving the original logic
Date Thu, 03 Dec 2015 13:52:50 GMT
Repository: cxf
Updated Branches:
  refs/heads/master 8006d4c4a -> 06ab79005


Preserving the original logic


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

Branch: refs/heads/master
Commit: 06ab79005b9eb296cba08bf22733a6a8a4f7a805
Parents: 8006d4c
Author: Sergey Beryozkin <sberyozkin@gmail.com>
Authored: Thu Dec 3 13:52:37 2015 +0000
Committer: Sergey Beryozkin <sberyozkin@gmail.com>
Committed: Thu Dec 3 13:52:37 2015 +0000

----------------------------------------------------------------------
 .../cxf/sts/token/provider/jwt/DefaultJWTClaimsProvider.java    | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/06ab7900/services/sts/sts-core/src/main/java/org/apache/cxf/sts/token/provider/jwt/DefaultJWTClaimsProvider.java
----------------------------------------------------------------------
diff --git a/services/sts/sts-core/src/main/java/org/apache/cxf/sts/token/provider/jwt/DefaultJWTClaimsProvider.java
b/services/sts/sts-core/src/main/java/org/apache/cxf/sts/token/provider/jwt/DefaultJWTClaimsProvider.java
index 9eb215b..faf353a 100644
--- a/services/sts/sts-core/src/main/java/org/apache/cxf/sts/token/provider/jwt/DefaultJWTClaimsProvider.java
+++ b/services/sts/sts-core/src/main/java/org/apache/cxf/sts/token/provider/jwt/DefaultJWTClaimsProvider.java
@@ -263,8 +263,9 @@ public class DefaultJWTClaimsProvider implements JWTClaimsProvider {
                 }
             }
         }
-        
-        claims.setAudiences(audiences);
+        if (!audiences.isEmpty()) {
+            claims.setAudiences(audiences);
+        }
         
     }
     


Mime
View raw message