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

[FEAT] S3 PreSignedUrl 발급 로직 구현 #48

Merged
merged 6 commits into from
Jan 11, 2024
Merged

[FEAT] S3 PreSignedUrl 발급 로직 구현 #48

merged 6 commits into from
Jan 11, 2024

Conversation

sung-silver
Copy link
Contributor

📝 PR 타입

  • 기능 추가
  • 기능 수정
  • 기능 삭제
  • 버그 수정
  • 의존성, 환경 변수, 빌드 관련 코드 업데이트

📝 반영 브랜치

📝 변경 사항

  • getUploadPresignedUrl 구현
  • CloudFrontService, S3Service 분리
  • FolderName 정적 변수로 분리

📝 테스트 결과

📝 To Reviewer

  • 제가 코드 조금 수정한 내용 중에 잘못된 부분이 있다면 따끔하게..혼내주세요 ㅎ

Copy link
Contributor

@mikekks mikekks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다! 분리해주셔서 훨씬 나아진거 같습니다!!

Comment on lines -52 to +62

String redirectURL = "https://nid.naver.com/oauth2.0/authorize?client_id=" + clientId
+ "&redirect_uri=" + redirectUri + "&response_type=code";
try {
response.sendRedirect(
"https://nid.naver.com/oauth2.0/authorize?&client_id=iuUGaSHmzPMxKmNlc0BD&redirect_uri=http://localhost:8080/login/oauth2/code/naver&response_type=code");
redirectURL);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

오호 이렇게 바꾸니 좋네요! 보안 생각하면 이게 맞겠네요 굿굿!

@@ -28,7 +28,7 @@ public class UniversityExamService {

private final UniversityExamRepository universityExamRepository;
private final UniversityExamImageRepository universityExamImageRepository;
private final S3Service s3Service;
private final CloudFrontService cloudFrontService;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

따로 분리하는게 맞는거 같네요 좋습니다~!

Comment on lines +6 to +10
public class FolderName {
public static final String EXAM_ANSWER_FOLDER_NAME = "exam-answer/";
public static final String EXAM_RESULT_FOLDER_NAME = "exam-result/";
public static final String EXAM_SHEET_FOLDER_NAME = "exam-sheet/";
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

따로 분리하는 거 넘 좋습니다!

@sung-silver sung-silver merged commit 64d768f into dev Jan 11, 2024
1 check passed
@sung-silver sung-silver deleted the feat/#47 branch January 11, 2024 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEAT] S3 Presinged Upload 로직 적용
2 participants