Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YEL-176 [feat] google noti 테스트 #368

Merged
merged 1 commit into from
Oct 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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);
}
}