diff --git a/src/main/java/com/yello/server/domain/authorization/filter/JwtExceptionFilter.java b/src/main/java/com/yello/server/domain/authorization/filter/JwtExceptionFilter.java index 9b7a6bcd..6623b08d 100644 --- a/src/main/java/com/yello/server/domain/authorization/filter/JwtExceptionFilter.java +++ b/src/main/java/com/yello/server/domain/authorization/filter/JwtExceptionFilter.java @@ -47,6 +47,7 @@ protected void doFilterInternal( || requestPath.startsWith("/actuator") || requestPath.startsWith("/prometheus") || requestPath.startsWith("/api/v1/admin/login") || requestPath.startsWith("/v2/apple/notifications") + || requestPath.startsWith("/v2/google/notifications") || (requestPath.startsWith("/api/v1/auth") && !requestPath.startsWith("/api/v1/auth/token/issue"))) { filterChain.doFilter(request, response); @@ -60,8 +61,8 @@ protected void doFilterInternal( log.info("Authorization-access : {}", accessHeader); log.info("Authorization-refresh : {}", refreshHeader); - if (accessHeader==null || !accessHeader.startsWith(BEARER) - || refreshHeader==null || !refreshHeader.startsWith(BEARER)) { + if (accessHeader == null || !accessHeader.startsWith(BEARER) + || refreshHeader == null || !refreshHeader.startsWith(BEARER)) { throw new CustomAuthenticationException(AUTHENTICATION_ERROR); } @@ -72,7 +73,7 @@ protected void doFilterInternal( val accessHeader = request.getHeader(AUTHORIZATION); log.info("Authorization : {}", accessHeader); - if (accessHeader==null || !accessHeader.startsWith(BEARER)) { + if (accessHeader == null || !accessHeader.startsWith(BEARER)) { throw new CustomAuthenticationException(AUTHENTICATION_ERROR); } diff --git a/src/main/java/com/yello/server/domain/authorization/filter/JwtFilter.java b/src/main/java/com/yello/server/domain/authorization/filter/JwtFilter.java index 260fb24e..04ae15c5 100644 --- a/src/main/java/com/yello/server/domain/authorization/filter/JwtFilter.java +++ b/src/main/java/com/yello/server/domain/authorization/filter/JwtFilter.java @@ -40,7 +40,8 @@ protected void doFilterInternal(HttpServletRequest request, HttpServletResponse || requestPath.startsWith("/actuator") || requestPath.startsWith("/prometheus") || requestPath.startsWith("/api/v1/admin/login") || requestPath.startsWith("/api/v1/auth") - || requestPath.startsWith("/v2/apple/notifications")) { + || requestPath.startsWith("/v2/apple/notifications") + || requestPath.startsWith("/v2/google/notifications")) { filterChain.doFilter(request, response); return; } diff --git a/src/main/java/com/yello/server/domain/purchase/controller/PurchaseNotificationController.java b/src/main/java/com/yello/server/domain/purchase/controller/PurchaseNotificationController.java index 4e8732a3..dbe3dd05 100644 --- a/src/main/java/com/yello/server/domain/purchase/controller/PurchaseNotificationController.java +++ b/src/main/java/com/yello/server/domain/purchase/controller/PurchaseNotificationController.java @@ -34,7 +34,7 @@ public BaseResponse appleNotification( public BaseResponse googleNotification( @RequestBody Object request ) { - log.info(request.toString()); + System.out.println("request = " + request); return BaseResponse.success(POST_GOOGLE_NOTIFICATION_SUCCESS); } }