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: Fixing a typo
Date Fri, 22 Jan 2016 14:01:54 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.1.x-fixes 5705d3db6 -> 3a8a24326


Fixing a typo


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

Branch: refs/heads/3.1.x-fixes
Commit: 3a8a24326d690c8e0b58631b9428e3b460918ab5
Parents: 4604ca1
Author: Sergey Beryozkin <sberyozkin@gmail.com>
Authored: Fri Jan 22 13:47:50 2016 +0000
Committer: Sergey Beryozkin <sberyozkin@gmail.com>
Committed: Fri Jan 22 14:01:33 2016 +0000

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


http://git-wip-us.apache.org/repos/asf/cxf/blob/3a8a2432/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/filters/OAuthRequestFilter.java
----------------------------------------------------------------------
diff --git a/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/filters/OAuthRequestFilter.java
b/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/filters/OAuthRequestFilter.java
index 5fb6108..e8478ad 100644
--- a/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/filters/OAuthRequestFilter.java
+++ b/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/filters/OAuthRequestFilter.java
@@ -106,7 +106,7 @@ public class OAuthRequestFilter extends AbstractAccessTokenValidator
         String validAudience = validateAudiences(accessTokenV.getAudiences());
         
         // Check if token was issued by the supported issuer
-        if (issuer != null && issuer.equals(accessTokenV.getTokenIssuer())) {
+        if (issuer != null && !issuer.equals(accessTokenV.getTokenIssuer())) {
             AuthorizationUtils.throwAuthorizationFailure(supportedSchemes, realm);
         }
         // Find the scopes which match the current request


Mime
View raw message