Skip to content

Commit

Permalink
corrected by code rabbit comments
Browse files Browse the repository at this point in the history
  • Loading branch information
IN40068837 authored and IN40068837 committed Dec 10, 2024
1 parent 54236e3 commit ba5afd4
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/main/environment/ecd_ci.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ [email protected]_API_BASE_URL@/beneficiary/create

##Beneficiary Edit Url
beneficiaryEditUrl =@env.COMMON_API_BASE_URL@/beneficiary/update
jwt.secret=<Enter_Your_Secret_Key>
jwt.secret=@JWT_SECRET_KEY@
2 changes: 1 addition & 1 deletion src/main/environment/ecd_dev.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ registerBeneficiaryUrl=<Enter your socket address here>/commonapi-v1.0/beneficia

##Beneficiary Edit Url
beneficiaryEditUrl =<Enter your socket address here>/commonapi-v1.0/beneficiary/update
jwt.secret=<Enter_Your_Secret_Key>
jwt.secret=@JWT_SECRET_KEY@
2 changes: 1 addition & 1 deletion src/main/environment/ecd_test.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ registerBeneficiaryUrl=<Enter your socket address here>/commonapi-v1.0/beneficia

##Beneficiary Edit Url
beneficiaryEditUrl =<Enter your socket address here>/commonapi-v1.0/beneficiary/update
jwt.secret=<Enter_Your_Secret_Key>
jwt.secret=@JWT_SECRET_KEY@
2 changes: 1 addition & 1 deletion src/main/environment/ecd_uat.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ registerBeneficiaryUrl=<Enter your socket address here>/commonapi-v1.0/beneficia

##Beneficiary Edit Url
beneficiaryEditUrl =<Enter your socket address here>/commonapi-v1.0/beneficiary/update
jwt.secret=<Enter_Your_Secret_Key>
jwt.secret=@JWT_SECRET_KEY@
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
public class JwtAuthenticationUtil {

@Autowired
private final CookieUtil cookieUtil;
private CookieUtil cookieUtil;
@Autowired
private final JwtUtil jwtUtil;
private JwtUtil jwtUtil;
@Autowired
private UserLoginRepo userLoginRepo;
private final Logger logger = LoggerFactory.getLogger(this.getClass().getName());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public void doFilter(ServletRequest servletRequest, ServletResponse servletRespo

// Log headers for debugging
String jwtTokenFromHeader = request.getHeader("Jwttoken");
logger.info("JWT token from header: " + jwtTokenFromHeader);
logger.info("JWT token from header: ");

// Skip login and public endpoints
if (path.equals(contextPath + "/user/userAuthenticate")
Expand All @@ -64,7 +64,7 @@ public void doFilter(ServletRequest servletRequest, ServletResponse servletRespo
try {
// Retrieve JWT token from cookies
String jwtTokenFromCookie = getJwtTokenFromCookies(request);
logger.info("JWT token from cookie: " + jwtTokenFromCookie);
logger.info("JWT token from cookie: ");

// Determine which token (cookie or header) to validate
String jwtToken = jwtTokenFromCookie != null ? jwtTokenFromCookie : jwtTokenFromHeader;
Expand Down

0 comments on commit ba5afd4

Please sign in to comment.