Skip to content

Conversation

@minwoo1999
Copy link
Member

@minwoo1999 minwoo1999 commented Jun 22, 2025

주요 변경 사항

카카오 소셜 로그인 기반 인증 전략 적용

  • 로컬 로그인과의 확장을 고려하여 전략 패턴으로 구현

  • 추후 LocalAuthStrategy 등 추가 가능하도록 구조화

JWT 리프레시 토큰(RT) 쿠키 관리

  • refreshToken은 HttpOnly + Secure 옵션이 포함된 쿠키로 전달

  • 프론트엔드 측에서는 액세스토큰만 관리하면 되도록 처리 → 보안성과 편의성 향상

#RTR 방식 적용 (Refresh Token Rotation)

  • accessToken 재발급 시 refreshToken도 함께 재발급

  • 이전 RT 폐기 → 재사용 공격 방지

#JWT 기반 인증 방식

  • SecurityFilterChain에서 SessionCreationPolicy.STATELESS 설정으로 세션 미사용

  • oauth2ResourceServer().jwt()를 통해 JWT 기반 리소스 서버로 동작

  • JwtDecoder로 토큰 서명을 검증하고 유효성 검사

  • JwtAuthenticationConverter + JwtRoleConverter로 토큰의 클레임에서 권한(Role)을 추출해 Spring Security의 인증 객체 생성

  • 다중디바이스를 고려한 JWT인증 / 인가 구현

이슈 닫음

@minwoo1999 minwoo1999 self-assigned this Jun 22, 2025
Copy link
Contributor

@suhongkim98 suhongkim98 left a comment

Choose a reason for hiding this comment

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

고생하셨습니다~
리베이스 후 머지 부탁드려요~!

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.

관리자 인증, 인가 기능 구현

3 participants