Browse Source

toned down errors on introspection endpoint

pull/708/merge
Justin Richer 10 years ago
parent
commit
5d35f2c1a6
  1. 4
      openid-connect-server/src/main/java/org/mitre/oauth2/web/IntrospectionEndpoint.java

4
openid-connect-server/src/main/java/org/mitre/oauth2/web/IntrospectionEndpoint.java

@ -158,7 +158,7 @@ public class IntrospectionEndpoint {
user = userInfoService.getByUsernameAndClientId(userName, tokenClient.getClientId());
} catch (InvalidTokenException e) {
logger.info("Invalid access token. Checking refresh token.", e);
logger.info("Invalid access token. Checking refresh token.");
try {
// check refresh tokens next
@ -171,7 +171,7 @@ public class IntrospectionEndpoint {
user = userInfoService.getByUsernameAndClientId(userName, tokenClient.getClientId());
} catch (InvalidTokenException e2) {
logger.error("Invalid refresh token", e2);
logger.error("Invalid refresh token");
Map<String,Boolean> entity = ImmutableMap.of("active", Boolean.FALSE);
model.addAttribute("entity", entity);
return JsonEntityView.VIEWNAME;

Loading…
Cancel
Save