Skip to content

Commit

Permalink
[ALS-5143] Improve logging for introspection token expiry errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Sikina authored and Luke-Sikina committed Oct 26, 2023
1 parent d9670df commit edf9efb
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,8 @@ private AuthUser callTokenIntroEndpoint(ContainerRequestContext requestContext,
if (response.getStatusLine().getStatusCode() != 200){
logger.error("callTokenIntroEndpoint() error back from token intro host server ["
+ token_introspection_url + "]: " + EntityUtils.toString(response.getEntity()));
logger.info("This callTokenIntroEndpoint error can happen when your introspection token has expired. " +
"You can fix this by running the Configure PIC-SURE Token Introspection Token job in Jenkins.");
throw new ApplicationException("Token Introspection host server return " + response.getStatusLine().getStatusCode() +
". Please see the log");
}
Expand Down

0 comments on commit edf9efb

Please sign in to comment.