-
Notifications
You must be signed in to change notification settings - Fork 4
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
경매 목록 조회 시 인가 기능 추가 #324
Merged
Merged
경매 목록 조회 시 인가 기능 추가 #324
Changes from 3 commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
final
이.. 필요해요.. 제 눈엔 왜 final 밖에 안 보일까요현재 사용되지 않는 변수명을 사용하게 될 때 변경하는 게 나을까요? 아니면 주석으로 설명을 달아두는 것이 나을까요?
나중에 잊어버린 상태로 방치된 레거시 코드가 되어버릴까봐 질문 드립니다
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
해당 파트를 사용을 하지 않는 코드라고 해야 할지 의문이네요...
인가 처리를 위해 있는 코드인 것 같은데 해당 사용자에 대해 추가 처리는 필요 없다 보니..!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
추가적으로 경매 상세 정보의 경우 해당 사용자가 존재하는지 추가적인 검증을 진행하고 목록의 경우 그러지 않고 있습니다.
어느 상황에서는 검증을 하고 어느 상황에서는 안 할지에 대한 기준을 얘기해 볼 필요가 있을 것 같습니다.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ArgumentResolver와 Interceptor는 인증 과정에서 사용하고, 이후 인가 과정이 없으므로 인가에 사용할 AuthenticationUserInfo는 사용하지 않는 코드라고 인식했습니다
경매 상세는 Seller인지 체크할 필요가 있어서 넣은거라 인가 처리를 하고자 하는 의도는 아니었지만 결과적으로는 인가를 수행한 것과 다름이 없어졌네요..이건 확실히 말씀해주신대로 고민을 해 봐야 할 것 같습니다