Browse Source

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

pull/1161/merge
Justin Richer 8 years ago
parent
commit
153776ecb5
  1. 4
      openid-connect-server/src/main/java/org/mitre/oauth2/web/DeviceEndpoint.java

4
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);

Loading…
Cancel
Save