Don’t catch OAuth2 errors, let the framework handle them here

pull/1161/merge
Justin Richer 2017-03-11 17:57:23 -05:00
parent d83fbc6c67
commit 153776ecb5
1 changed files with 0 additions and 4 deletions

View File

@ -110,10 +110,6 @@ public class DeviceEndpoint {
throw new InvalidClientException("Unauthorized grant type: " + DeviceTokenGranter.GRANT_TYPE); 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) { } catch (IllegalArgumentException e) {
logger.error("IllegalArgumentException was thrown when attempting to load client", e); logger.error("IllegalArgumentException was thrown when attempting to load client", e);
model.put(HttpCodeView.CODE, HttpStatus.BAD_REQUEST); model.put(HttpCodeView.CODE, HttpStatus.BAD_REQUEST);