Skip to content

Commit

Permalink
YEL-176 [feat] google noti 테스트
Browse files Browse the repository at this point in the history
YEL-176 [feat] google noti 테스트
  • Loading branch information
euije authored Oct 8, 2023
2 parents bf39cd4 + 235e0e5 commit f232bbc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
}

Expand All @@ -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);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public BaseResponse appleNotification(
public BaseResponse<EmptyObject> googleNotification(
@RequestBody Object request
) {
log.info(request.toString());
System.out.println("request = " + request);
return BaseResponse.success(POST_GOOGLE_NOTIFICATION_SUCCESS);
}
}

0 comments on commit f232bbc

Please sign in to comment.