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 the oauth2 filter code
Date Mon, 02 Nov 2015 17:19:47 GMT
Repository: cxf
Updated Branches:
  refs/heads/master 86673e7ae -> 9bb358404


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

Branch: refs/heads/master
Commit: 9bb3584045637b93bc5a24243820974544ed2e72
Parents: 86673e7
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:19:32 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/9bb35840/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