Skip to content

Conversation

@joyewon0705
Copy link
Collaborator

@joyewon0705 joyewon0705 commented Sep 23, 2025

📌 개요

  • JWT 기반 인증/인가 인프라 구축

🔨 작업 내용

  • JwtTokenProvider 구현 (Access/Refresh 토큰 발급 및 검증)
  • JwtAuthenticationFilter 구현 및 SecurityFilterChain 등록
  • CustomUserDetails 구현 (userId, username, role 저장)
  • 인증 실패(401), 인가 실패(403) 처리 핸들러 추가
    • JwtAuthenticationEntryPoint
    • JwtAccessDeniedHandler
  • SecurityConfig 수정
    • JWT 필터 추가
    • 401/403 핸들러 등록
  • 테스트용 Dummy Controller 및 MockMvc 통합 테스트 작성

🔗 관련 이슈

Closes #32

📝 참고 사항

  • 추후 회원가입/로그인 API 연동 후 실제 토큰 발급 과정 검증 필요
  • CI/CD 테스트 통과를 위해 환경 변수가 없다면 임의 값을 읽도록 설정해뒀는데, 운영 시에는 반드시 환경 변수로 설정해야 합니다
  • API 개발 시 인가 처리 가이드는 아래를 참고해주세요

✅ 체크리스트

  • 기능 동작 확인
  • 테스트 코드 작성
  • 문서/주석 추가 및 최신화

@github-actions github-actions bot changed the title Feat: JWT 인증/인가 인프라 초기 세팅 Feat: JWT 인증/인가 인프라 초기 세팅 (#32) Sep 23, 2025
@KSH0326 KSH0326 self-requested a review September 23, 2025 03:41
@joyewon0705 joyewon0705 merged commit 95b305e into dev Sep 23, 2025
3 checks passed
@joyewon0705 joyewon0705 deleted the Feat/32 branch September 23, 2025 05:44
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.

4 participants