Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Token 처리하는 필터 구현 #41

Merged
merged 20 commits into from
Jan 14, 2024
Merged

Token 처리하는 필터 구현 #41

merged 20 commits into from
Jan 14, 2024

Conversation

jacobhboy
Copy link
Member

@jacobhboy jacobhboy commented Jan 10, 2024

🎫 관련 이슈

close #40


🔨 작업 내용

  • 토큰을 처리하는 필터를 구현하였습니다.

🏁 확인 사항

  • 테스트를 완료했나요?
  • API 문서를 작성했나요?
  • 코드 컨벤션을 준수했나요?
  • 불필요한 로그, 주석, import 등을 삭제했나요?

🙋🏻 덧붙일 말

@jacobhboy jacobhboy linked an issue Jan 10, 2024 that may be closed by this pull request
2 tasks
@jacobhboy jacobhboy requested a review from Woongbin06 January 10, 2024 11:53
Copy link
Contributor

@Woongbin06 Woongbin06 left a comment

Choose a reason for hiding this comment

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

인증과 인가를 구현한 좋은 레퍼런스가 될 거 같네요 ㅎㅎ 수고하셨습니다.

Comment on lines +12 to +15
public class UserCreator {

private final UserRepository repository;

Copy link
Contributor

Choose a reason for hiding this comment

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

repository 네이밍을 통일성 있게 가기 위해서 userRepository로 하는게 좋을 거 같아요

Copy link
Member Author

Choose a reason for hiding this comment

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

넵!

Comment on lines +36 to +37
User user = userRepository.findById(userId)
.orElseThrow(() -> new UserNotFoundException(userId));
Copy link
Contributor

Choose a reason for hiding this comment

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

인터셉터에서는 userReader를 만들어서 쓸 수 없는 건가요?? 진짜 몰라서 물어봅니다. ㅎ

Copy link
Member Author

Choose a reason for hiding this comment

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

헉 맞네요. 변경하겠습니다~

@jacobhboy jacobhboy merged commit 67ef81b into master Jan 14, 2024
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.

Token 처리하는 필터 구현
2 participants