Skip to content

Commit

Permalink
log when security token header is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
erilong committed Apr 14, 2023
1 parent 9ebda3c commit df2e441
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -91,6 +91,9 @@ public boolean before(HttpServletRequest req, HttpServletResponse resp) throws I
}
nodeId = req.getParameter(WebConstants.NODE_ID);
if (StringUtils.isEmpty(securityToken) || StringUtils.isEmpty(nodeId)) {
if (!StringUtils.isEmpty(nodeId)) {
log.warn("Node '{}' failed to authenticate. It is missing the security token", nodeId);
}
ServletUtils.sendError(resp, WebConstants.SC_FORBIDDEN);
return false;
}
Expand Down

0 comments on commit df2e441

Please sign in to comment.