Skip to content

[REFACTOR] JWT 발급 및 검증 책임 분리 - #565

Merged
GiJungPark merged 1 commit into
devfrom
refactor/#556
Jul 29, 2026
Merged

[REFACTOR] JWT 발급 및 검증 책임 분리#565
GiJungPark merged 1 commit into
devfrom
refactor/#556

Conversation

@GiJungPark

@GiJungPark GiJungPark commented Jul 29, 2026

Copy link
Copy Markdown
Member

Related Issue

Key Changes

  • JWT 발급 책임을 JwtProvider에 집중하고, 서명 키 생성 책임을 JwtKeyProvider로 분리했습니다.
  • JWT 검증과 사용자 ID 추출 책임을 JWTUtil로 정리하고, Access/Refresh 토큰 타입을 TokenType으로 명시했습니다.
  • Apple ID Token 헤더 파싱, 공개키 조회, 서명 검증 책임을 AppleIdTokenVerifier로 분리해 AppleServiceAuthApplication의 중복 검증 로직을 제거했습니다.
  • JwtAuthenticationFilter가 JWT 검증 결과별로 CustomAuthError 기반 JSON 에러 응답을 반환하도록 정리했습니다.
  • 만료된 Access Token과 잘못된 토큰 타입 에러를 CustomAuthError에 추가했습니다.
  • JWT 발급, 검증, 필터 동작을 검증하는 auth 단위 테스트를 추가했습니다.

To Reviewers

References

@GiJungPark
GiJungPark merged commit 7530cf9 into dev Jul 29, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[REFACTOR] JWT 발급·검증 및 인증 적용 책임 정리

2 participants