Skip to content

Commit

Permalink
perf($Filter): delete function-duplicated filter RequestFilter.java
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnymillergh committed May 8, 2020
1 parent 76edf55 commit 48434f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@ public class JwtAuthenticationFilter extends OncePerRequestFilter {
protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response,
FilterChain filterChain) throws ServletException, IOException {
log.info("JWT authentication is filtering [{}] client requested access. URL: {}, HTTP method: {}",
RequestUtil.getRequestIpAndPort(request), request.getServletPath(), request.getMethod());
RequestUtil.getRequestIpAndPort(request), request.getRequestURL(), request.getMethod());
if (customConfiguration.getWebSecurityDisabled()) {
log.warn("The web security is disabled! Might face severe web security issue.");
filterChain.doFilter(request, response);
return;
}
if (checkIgnores(request)) {
log.info("The request can be ignored. URL: {}", request.getRequestURI());
log.info("The request can be ignored. URL: {}", request.getRequestURL());
filterChain.doFilter(request, response);
return;
}
Expand Down

This file was deleted.

0 comments on commit 48434f1

Please sign in to comment.