From 153776ecb5e09d05c6215d6ff5c3d6c93fe2f20f Mon Sep 17 00:00:00 2001 From: Justin Richer Date: Sat, 11 Mar 2017 17:57:23 -0500 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20catch=20OAuth2=20errors,=20let?= =?UTF-8?q?=20the=20framework=20handle=20them=20here?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/org/mitre/oauth2/web/DeviceEndpoint.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/openid-connect-server/src/main/java/org/mitre/oauth2/web/DeviceEndpoint.java b/openid-connect-server/src/main/java/org/mitre/oauth2/web/DeviceEndpoint.java index 2ba7a808b..86f14c3b2 100644 --- a/openid-connect-server/src/main/java/org/mitre/oauth2/web/DeviceEndpoint.java +++ b/openid-connect-server/src/main/java/org/mitre/oauth2/web/DeviceEndpoint.java @@ -110,10 +110,6 @@ public class DeviceEndpoint { throw new InvalidClientException("Unauthorized grant type: " + DeviceTokenGranter.GRANT_TYPE); } - } catch (OAuth2Exception e) { - logger.error("OAuth2Exception was thrown when attempting to load client", e); - model.put(HttpCodeView.CODE, HttpStatus.BAD_REQUEST); - return HttpCodeView.VIEWNAME; } catch (IllegalArgumentException e) { logger.error("IllegalArgumentException was thrown when attempting to load client", e); model.put(HttpCodeView.CODE, HttpStatus.BAD_REQUEST);