Skip to content

[refactor/#442] Auth security 내부 책임 명명 정리#446

Merged
Dimo-2562 merged 6 commits into
developfrom
refactor/#442
Jun 20, 2026
Merged

[refactor/#442] Auth security 내부 책임 명명 정리#446
Dimo-2562 merged 6 commits into
developfrom
refactor/#442

Conversation

@Dimo-2562

Copy link
Copy Markdown
Contributor

❤️ 기능 설명

Auth / Security 내부의 역할 이름이 흐린 service/util/listener 책임을 기능 변경 없이 정리했습니다.

  • RefreshTokenServiceRefreshTokenStore (auth/security/token)
  • UserAuthCacheServiceUserAuthCacheStore (auth/security/cache)
  • UserAuthCacheEventListenerUserAuthCacheInvalidationListener (auth/security/cache)
  • CookieUtilRefreshTokenCookieWriter bean (auth/security/cookie)
  • refresh token cookie domain/attribute 정책을 RefreshTokenCookieWriter 내부로 캡슐화
  • 관련 단위/통합 테스트 클래스명과 Auth / Security 문서 갱신

Swagger 테스트 성공 결과 스크린샷 첨부: 백엔드 내부 리팩토링이라 별도 Swagger 스크린샷은 없습니다. 아래 CLI 테스트 결과로 대체합니다.

연결된 issue

close #442

Follow-up: #445



🩷 Approve 하기 전 확인해주세요!

  • cookie wire contract가 유지되는지 확인해주세요. (refreshToken, Path=/, Domain, Max-Age, Secure, HttpOnly, SameSite=None)
  • Hexagonal 전환은 #445로 분리했으므로 이번 PR에는 포함하지 않았습니다.

✅ 체크리스트

  • PR 제목 규칙 잘 지켰는가?
  • 추가/수정사항을 설명하였는가?
  • 테스트 결과 사진을 넣었는가? (CLI 테스트 결과로 대체)
  • 이슈넘버를 적었는가?

테스트

./gradlew test \
  --tests 'com.techfork.auth.application.command.AuthCommandServiceTest' \
  --tests 'com.techfork.auth.application.command.KakaoLoginCommandServiceTest' \
  --tests 'com.techfork.auth.security.cache.UserAuthCacheStoreTest' \
  --tests 'com.techfork.auth.security.cache.UserAuthCacheInvalidationListenerTest' \
  --tests 'com.techfork.auth.security.cookie.RefreshTokenCookieWriterTest' \
  --tests 'com.techfork.auth.security.filter.JwtAuthenticationFilterTest' \
  --tests 'com.techfork.auth.security.handler.login.OAuth2LoginRefreshTokenWriterTest' \
  --tests 'com.techfork.auth.security.handler.login.OAuth2AuthenticationSuccessHandlerTest'

결과: BUILD SUCCESSFUL

git diff --check

결과: 통과

@Dimo-2562 Dimo-2562 self-assigned this Jun 20, 2026
@Dimo-2562 Dimo-2562 added 🌟 REFACTOR 리팩터링 (기능 변화 X) 🔐 domain:auth 인증/보안 관련 (로그인, JWT, OAuth) labels Jun 20, 2026
@Dimo-2562 Dimo-2562 merged commit 52b7949 into develop Jun 20, 2026
1 check passed
@Dimo-2562 Dimo-2562 deleted the refactor/#442 branch June 20, 2026 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🔐 domain:auth 인증/보안 관련 (로그인, JWT, OAuth) 🌟 REFACTOR 리팩터링 (기능 변화 X)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[REFACTOR] Auth security 내부 store/cache/cookie 책임 명명 정리

1 participant