diff --git a/src/main/java/org/ays/auth/filter/AysBearerTokenAuthenticationFilter.java b/src/main/java/org/ays/auth/filter/AysBearerTokenAuthenticationFilter.java index f5d6e8f66..08e363602 100644 --- a/src/main/java/org/ays/auth/filter/AysBearerTokenAuthenticationFilter.java +++ b/src/main/java/org/ays/auth/filter/AysBearerTokenAuthenticationFilter.java @@ -102,7 +102,7 @@ protected void doFilterInternal(@NotNull HttpServletRequest httpServletRequest, final String tokenId = tokenService.getPayload(jwt).getId(); invalidTokenService.checkForInvalidityOfToken(tokenId); - if (this.isNotAllowedPath(httpServletRequest) || isAuthorizedRateLimitEnabled) { + if (isAuthorizedRateLimitEnabled) { boolean isRateLimitExceeded = this.isRateLimitExceeded(ipAddress, authorizedBuckets, httpServletResponse); if (isRateLimitExceeded) { return;