cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject cxf git commit: Minor update to OAuth2 request filter
Date Mon, 02 Nov 2015 17:16:32 GMT
Repository: cxf
Updated Branches:
  refs/heads/master 6fb4b95f7 -> 86673e7ae


Minor update to OAuth2 request filter


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

Branch: refs/heads/master
Commit: 86673e7ae78fdc7fca4c27e8295ac2cedbf92d9c
Parents: 6fb4b95
Author: Sergey Beryozkin <sberyozkin@gmail.com>
Authored: Mon Nov 2 17:15:07 2015 +0000
Committer: Sergey Beryozkin <sberyozkin@gmail.com>
Committed: Mon Nov 2 17:15:07 2015 +0000

----------------------------------------------------------------------
 .../security/oauth2/filters/AccessTokenValidatorClient.java   | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/86673e7a/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/filters/AccessTokenValidatorClient.java
----------------------------------------------------------------------
diff --git a/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/filters/AccessTokenValidatorClient.java
b/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/filters/AccessTokenValidatorClient.java
index 71bb021..7833f4e 100644
--- a/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/filters/AccessTokenValidatorClient.java
+++ b/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/filters/AccessTokenValidatorClient.java
@@ -22,6 +22,7 @@ import java.util.Collections;
 import java.util.LinkedList;
 import java.util.List;
 
+import javax.ws.rs.WebApplicationException;
 import javax.ws.rs.core.MultivaluedMap;
 
 import org.apache.cxf.jaxrs.client.WebClient;
@@ -54,7 +55,11 @@ public class AccessTokenValidatorClient implements AccessTokenValidator
{
         if (extraProps != null) {
             props.putAll(extraProps);
         }
-        return client.post(props, AccessTokenValidation.class);
+        try {
+            return client.post(props, AccessTokenValidation.class);
+        } catch (WebApplicationException ex) {
+            throw new OAuthServiceException(ex);
+        }
     }
 
     public void setTokenValidatorClient(WebClient tokenValidatorClient) {


Mime
View raw message