cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject cxf git commit: One more update to oauth code filter
Date Mon, 09 Nov 2015 21:54:34 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.1.x-fixes 8516661b6 -> b6018a47e


One more update to oauth code filter


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

Branch: refs/heads/3.1.x-fixes
Commit: b6018a47e19bf98ad405baf51e363eae9972f4dd
Parents: 8516661
Author: Sergey Beryozkin <sberyozkin@gmail.com>
Authored: Mon Nov 9 21:53:08 2015 +0000
Committer: Sergey Beryozkin <sberyozkin@gmail.com>
Committed: Mon Nov 9 21:54:07 2015 +0000

----------------------------------------------------------------------
 .../cxf/rs/security/oauth2/client/ClientCodeRequestFilter.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/b6018a47/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/client/ClientCodeRequestFilter.java
----------------------------------------------------------------------
diff --git a/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/client/ClientCodeRequestFilter.java
b/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/client/ClientCodeRequestFilter.java
index 49df2d6..ae9f942 100644
--- a/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/client/ClientCodeRequestFilter.java
+++ b/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/client/ClientCodeRequestFilter.java
@@ -114,7 +114,7 @@ public class ClientCodeRequestFilter implements ContainerRequestFilter
{
         if (sc == null || sc.getUserPrincipal() == null) {
             if (codeParam == null 
                 && requestParams.containsKey(OAuthConstants.ERROR_KEY)
-                && OAuthConstants.ACCESS_DENIED.equals(requestParams.get(OAuthConstants.ERROR_KEY))
+                && OAuthConstants.ACCESS_DENIED.equals(requestParams.getFirst(OAuthConstants.ERROR_KEY))
                 && !faultAccessDeniedResponses) {
                 if (!applicationCanHandleAccessDenied) {
                     rc.abortWith(Response.ok(new AccessDeniedResponse()).build());    


Mime
View raw message