cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject cxf git commit: Fixing a typo in OAuthUtils
Date Thu, 21 Jan 2016 17:25:59 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.1.x-fixes 4612855a0 -> 6af098775


Fixing a typo in OAuthUtils


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

Branch: refs/heads/3.1.x-fixes
Commit: 6af09877545cb1fe34fce0057b5b39cb264b5f7c
Parents: 4612855
Author: Sergey Beryozkin <sberyozkin@gmail.com>
Authored: Thu Jan 21 17:24:37 2016 +0000
Committer: Sergey Beryozkin <sberyozkin@gmail.com>
Committed: Thu Jan 21 17:25:41 2016 +0000

----------------------------------------------------------------------
 .../java/org/apache/cxf/rs/security/oauth2/utils/OAuthUtils.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/6af09877/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/utils/OAuthUtils.java
----------------------------------------------------------------------
diff --git a/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/utils/OAuthUtils.java
b/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/utils/OAuthUtils.java
index 1857bf3..a7f9dc6 100644
--- a/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/utils/OAuthUtils.java
+++ b/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/utils/OAuthUtils.java
@@ -200,7 +200,7 @@ public final class OAuthUtils {
                                             List<String> allowedAudiences) {
         return StringUtils.isEmpty(providedAudiences) 
                && StringUtils.isEmpty(allowedAudiences)
-               || allowedAudiences.contains(providedAudiences);
+               || allowedAudiences.containsAll(providedAudiences);
     }
     
     public static boolean checkRequestURI(String servletPath, String uri) {


Mime
View raw message