From 75fed0bb098fc5f58566955098a3e0e2f3535d7c Mon Sep 17 00:00:00 2001 From: Rohit Date: Mon, 27 May 2024 00:47:42 +0530 Subject: [PATCH] feature/cookie-based-security-added --- pom.xml | 2 +- .../authentication/JwtTokenValidationFilter.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 2f9f438..bba0a00 100644 --- a/pom.xml +++ b/pom.xml @@ -10,7 +10,7 @@ com.bloggios.authentication-config authentication-configuration-jar - 1.1 + 1.2 authentication-configuration-jar authentication-configuration-jar diff --git a/src/main/java/com/bloggios/authenticationconfig/authentication/JwtTokenValidationFilter.java b/src/main/java/com/bloggios/authenticationconfig/authentication/JwtTokenValidationFilter.java index 69f3661..fb1f84b 100644 --- a/src/main/java/com/bloggios/authenticationconfig/authentication/JwtTokenValidationFilter.java +++ b/src/main/java/com/bloggios/authenticationconfig/authentication/JwtTokenValidationFilter.java @@ -99,7 +99,7 @@ protected void doFilterInternal(HttpServletRequest request, HttpServletResponse if (!CollectionUtils.isEmpty(cookiePaths)) { isCookiePath = cookiePaths.stream().anyMatch(e -> antPathMatcher.match(e, request.getRequestURI())); } - if (!isExcludePath) { + if (!isExcludePath && !isCookiePath) { if (token != null) { try { jwtDecoder.decode(token);