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:24:52 GMT
Repository: cxf
Updated Branches:
  refs/heads/master 83451c004 -> c0d2c83b4


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

Branch: refs/heads/master
Commit: c0d2c83b469215c32138ff29aeee31b11046f0ad
Parents: 83451c0
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:24:37 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/c0d2c83b/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