cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject [1/2] cxf git commit: Preserving the original logic
Date Thu, 03 Dec 2015 14:22:59 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.1.x-fixes 21bbc3862 -> 564e9a692


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

Branch: refs/heads/3.1.x-fixes
Commit: 564e9a6926f7b41982350e796d55bf8c371b912d
Parents: 9fe5435
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 14:22:41 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/564e9a69/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