Skip to content

Conversation

@MEOHIN
Copy link
Collaborator

@MEOHIN MEOHIN commented Sep 29, 2025

📢 기능 설명

MyBarController에서 사용자 인증 정보를 처리하는 방식을 리팩토링했습니다.

연결된 issue

close #163



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

  • 인증 객체 변경: Long userId 대신 SecurityUser principal 객체를 주입받도록 변경했습니다.
  • 명시적 로그인 검증: principal 또는 userId가 없는 경우 **ServiceException(401)**을 던져 명확하게 로그인되지 않은 요청을 처리합니다

✅ 체크리스트

  • PR 제목 규칙 잘 지켰는가?
  • 추가/수정사항을 설명하였는가?
  • 이슈넘버를 적었는가?
  • Approve 하기 전 확인 사항 체크했는가?

- MyBarController의 모든 엔드포인트에서 `@AuthenticationPrincipal`을 활용하여 사용자 인증 정보를 처리하는 방식을 리팩토링
@github-actions github-actions bot added the refactor 코드 리팩토링 label Sep 29, 2025
@MEOHIN MEOHIN merged commit 806b2a7 into dev Sep 30, 2025
1 check passed
@MEOHIN MEOHIN deleted the feat#163 branch September 30, 2025 01:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactor 코드 리팩토링

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[refactor] MyBarController에서 사용자 인증 정보를 처리하는 방식을 리팩토링

3 participants