toned down errors on introspection endpoint
parent
65d7b00f4d
commit
5d35f2c1a6
|
@ -158,7 +158,7 @@ public class IntrospectionEndpoint {
|
||||||
user = userInfoService.getByUsernameAndClientId(userName, tokenClient.getClientId());
|
user = userInfoService.getByUsernameAndClientId(userName, tokenClient.getClientId());
|
||||||
|
|
||||||
} catch (InvalidTokenException e) {
|
} catch (InvalidTokenException e) {
|
||||||
logger.info("Invalid access token. Checking refresh token.", e);
|
logger.info("Invalid access token. Checking refresh token.");
|
||||||
try {
|
try {
|
||||||
|
|
||||||
// check refresh tokens next
|
// check refresh tokens next
|
||||||
|
@ -171,7 +171,7 @@ public class IntrospectionEndpoint {
|
||||||
user = userInfoService.getByUsernameAndClientId(userName, tokenClient.getClientId());
|
user = userInfoService.getByUsernameAndClientId(userName, tokenClient.getClientId());
|
||||||
|
|
||||||
} catch (InvalidTokenException e2) {
|
} catch (InvalidTokenException e2) {
|
||||||
logger.error("Invalid refresh token", e2);
|
logger.error("Invalid refresh token");
|
||||||
Map<String,Boolean> entity = ImmutableMap.of("active", Boolean.FALSE);
|
Map<String,Boolean> entity = ImmutableMap.of("active", Boolean.FALSE);
|
||||||
model.addAttribute("entity", entity);
|
model.addAttribute("entity", entity);
|
||||||
return JsonEntityView.VIEWNAME;
|
return JsonEntityView.VIEWNAME;
|
||||||
|
|
Loading…
Reference in New Issue