You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by se...@apache.org on 2015/11/02 18:19:47 UTC
cxf git commit: One more update to the oauth2 filter code
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 <sb...@gmail.com>
Authored: Mon Nov 2 17:19:32 2015 +0000
Committer: Sergey Beryozkin <sb...@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