Skip to content

Conversation

@haennni
Copy link
Member

@haennni haennni commented Jun 9, 2025

📌 연관된 이슈

이슈 번호를 작성해주세요. ex) - #이슈번호

📝작업 내용

이번 PR에서 작업한 내용을 간략히 설명해주세요

  • application 설정 값을 기반으로 쿠키 속성을 바인딩하는 설정 클래스 추가
  • 쿠키 공통 유틸 클래스 구현
  • JwtProvider 쿠키 생성 로직 제거
  • 서비스단 쿠키 저장 방식 통합

💬리뷰 시 요구사항 (선택)

리뷰어가 특별히 봐주었으면 하는 부분이 있다면 작성해주세요

haennni added 5 commits June 10, 2025 00:32
- CookiePropertiesTest: @ConfigurationProperties 바인딩 테스트를 설계하였습니다.
- CookieServiceTest: 쿠키 저장 시 HttpServletResponse에 Set-Cookie 헤더가 정상적으로 추가되는지 검증 테스트를 설계하였습니다.
- application 설정 값을 기반으로 쿠키 속성을 바인딩했습니다
- accessToken, email 등을 응답에 쿠키로 저장하는 유틸을 구현했습니다
- accessToken 재발급 시 직접 헤더 설정 대신 공통 쿠키 저장 유틸을 사용했습니다.
- 중복 로직을 제거하고 책임을 분리했습니다.
- 로그인 필터 및 시큐리티 설정에 쿠키 유틸 주입하였습니다.
- 인증 흐름 내 쿠키 기반 응답 처리 가능하도록 구성하였습니다.
- JwtProvider를 직접 호출해 쿠키를 설정하던 로직을 제거했습니다.
- CookieService를 통해 accessToken 저장 책임을 일관되게 위임했습니다.
@haennni haennni self-assigned this Jun 9, 2025
@haennni haennni added 🔨 Refactor 코드 리팩토링 ✨ Feature 기능 개발 labels Jun 9, 2025
@haennni haennni linked an issue Jun 9, 2025 that may be closed by this pull request
5 tasks
@haennni haennni merged commit 9ce6068 into main Jun 9, 2025
1 check passed
@haennni haennni deleted the refactor/39-cookie-samesite branch June 9, 2025 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🔨 Refactor 코드 리팩토링 ✨ Feature 기능 개발

Projects

None yet

Development

Successfully merging this pull request may close these issues.

쿠키 저장 로직 통합 및 중복 제거

2 participants