cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject [2/2] cxf git commit: Minor update to OAuth2 request filter
Date Mon, 02 Nov 2015 17:22:04 GMT
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/f12c540d
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/f12c540d
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/f12c540d

Branch: refs/heads/3.0.x-fixes
Commit: f12c540db2066aa2992f2a77a3d4068c3f72b6b7
Parents: ea9f508
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:21:33 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/f12c540d/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