Skip to content

Commit

Permalink
HOTFIX: Update S3 upload
Browse files Browse the repository at this point in the history
  • Loading branch information
oxdjww committed Nov 20, 2024
1 parent 55cb5a6 commit 426fb59
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,11 @@ public void onAuthenticationSuccess(HttpServletRequest request, HttpServletRespo

addRefreshEntity(username, refreshToken, 86400000L);

System.out.println("=====쿠키쿠키=====");
// Refresh 토큰 쿠키에 추가
addSameSiteCookie(response, "refresh", refreshToken);
System.out.println("리프레쉬: " + refreshToken);
System.out.println("=====쿠키쿠키=====");

// loginStatus 쿠키 추가
if (role.equals("ROLE_USER")) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import java.net.URI;
import java.util.Map;

import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.security.core.Authentication;
import org.springframework.web.bind.annotation.PathVariable;
Expand Down Expand Up @@ -35,7 +36,7 @@ private String getUserNameByAuthentication(Authentication authentication) throws
return principal.getUsername();
}

@PostMapping("/{directory}")
@PostMapping(value = "/{directory}", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
@Operation(summary = "사진저장")
@ApiResponse(responseCode = "201", description = "사진 저장됨")
public ResponseEntity<ApiResponseGenerator<Map<String, String>>> saveImageInS3(Authentication authentication,
Expand Down

0 comments on commit 426fb59

Please sign in to comment.