Skip to content

[#45] Authorization 헤더 문서화 설정#47

Merged
earlgrey02 merged 2 commits intodevfrom
feature/45-authorization-header-docs
Feb 5, 2026
Merged

[#45] Authorization 헤더 문서화 설정#47
earlgrey02 merged 2 commits intodevfrom
feature/45-authorization-header-docs

Conversation

@earlgrey02
Copy link
Member

작업 내용

  • Authorization 헤더 문서화 설정
  • 누락된 Swagger 서버 URL 설정

관련 이슈

@earlgrey02 earlgrey02 requested review from 1117mg and mjk25 February 5, 2026 06:31
@earlgrey02 earlgrey02 self-assigned this Feb 5, 2026
@earlgrey02 earlgrey02 added the feature 기능 구현 label Feb 5, 2026
@github-actions
Copy link

github-actions bot commented Feb 5, 2026

🤖 Gemini Code Review

✅ 변경 사항 요약

  • 테스트 환경의 WebTestClient 인증 유틸리티에 HTTP Authorization 헤더 설정 로직을 추가했습니다.
  • 테스트 픽스처에서 사용되는 JWT 토큰의 구조를 실제와 유사하게 변경했습니다.

✏️ 파일별 상세 리뷰

api/src/testFixtures/kotlin/com/retoday/api/util/WebTestClientUtils.kt

  • 📍 Issue: 기존 withAuthentication 유틸리티는 SecurityContextHolder에 인증 객체만 설정하여, Authorization 헤더를 의존하는 Spring Security 필터 체인의 동작을 정확하게 모방하지 못했습니다.
  • Improvement: header(HttpHeaders.AUTHORIZATION, "Bearer $TOKEN") 호출을 추가하여 통합 테스트 시 인증 헤더가 명시적으로 포함되도록 보장해야 합니다. 이는 테스트 환경의 기능적 정확성을 높이는 필수적인 수정입니다.

@earlgrey02 earlgrey02 force-pushed the feature/45-authorization-header-docs branch 2 times, most recently from cb67889 to 8fc6bf4 Compare February 5, 2026 06:54
Copy link
Member

@1117mg 1117mg left a comment

Choose a reason for hiding this comment

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

LGTM

@earlgrey02 earlgrey02 force-pushed the feature/45-authorization-header-docs branch from 8fc6bf4 to 0486bb3 Compare February 5, 2026 07:02
@earlgrey02 earlgrey02 merged commit b05b072 into dev Feb 5, 2026
@earlgrey02 earlgrey02 deleted the feature/45-authorization-header-docs branch February 5, 2026 07:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature 기능 구현

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Authorization 헤더 문서화 설정

2 participants