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: One more update to the oauth2 filter code
Date Mon, 02 Nov 2015 17:22:03 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.0.x-fixes ea9f508c3 -> 5d4a4bc21


One more update to the oauth2 filter code


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

Branch: refs/heads/3.0.x-fixes
Commit: 5d4a4bc21bffae8b907492a23340013960908d8b
Parents: f12c540
Author: Sergey Beryozkin <sberyozkin@gmail.com>
Authored: Mon Nov 2 17:19:32 2015 +0000
Committer: Sergey Beryozkin <sberyozkin@gmail.com>
Committed: Mon Nov 2 17:21:33 2015 +0000

----------------------------------------------------------------------
 .../security/oauth2/services/AbstractAccessTokenValidator.java  | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/5d4a4bc2/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/services/AbstractAccessTokenValidator.java
----------------------------------------------------------------------
diff --git a/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/services/AbstractAccessTokenValidator.java
b/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/services/AbstractAccessTokenValidator.java
index 4594e35..713318a 100644
--- a/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/services/AbstractAccessTokenValidator.java
+++ b/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/services/AbstractAccessTokenValidator.java
@@ -106,8 +106,9 @@ public abstract class AbstractAccessTokenValidator {
                 accessTokenV = handler.validateAccessToken(getMessageContext(), authScheme,
authSchemeData, 
                                                            extraProps);
             } catch (OAuthServiceException ex) {
-                AuthorizationUtils.throwAuthorizationFailure(
-                    Collections.singleton(authScheme), realm);
+                AuthorizationUtils.throwAuthorizationFailure(Collections.singleton(authScheme),
realm);
+            } catch (RuntimeException ex) {
+                AuthorizationUtils.throwAuthorizationFailure(Collections.singleton(authScheme),
realm);
             }
         }
         // Default processing if no registered providers available


Mime
View raw message