-
Notifications
You must be signed in to change notification settings - Fork 2
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
[TLVB-236] 로그인 api 시큐리티 적용 #77
base: develop
Are you sure you want to change the base?
Conversation
Unit Test Results 6 files ±0 6 suites ±0 1s ⏱️ ±0s Results for commit e098be0. ± Comparison against base commit 559e4ae. This pull request removes 3 tests.
|
this.userConverter = userConverter; | ||
} | ||
|
||
@SneakyThrows |
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.
아래에 예외를 던지는데 이거 사용한 이유가 무엇인가요?
userDetails.getAuthorities().stream().map(GrantedAuthority::getAuthority).toList() | ||
); | ||
|
||
response.setHeader("X-AUTH-TOKEN", token); |
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.
X-AUTH-TOKEN
이 값을 상수로 할 수 있도록 하면 어떨까요?
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.
JwtProperty 클래스에 변수(HEADER_STRING)로 추가 해도 좋을 것 같슴다ㅏㅏ!!
@@ -303,67 +295,6 @@ void updateUserUsingDuplicatedNicknameTest() { | |||
verify(userRepository).existsByNickname(updateRequest.getNickname()); | |||
} | |||
|
|||
@Test | |||
void loginSuccessTest() { |
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.
수고하셨습니다 리엔~!! 👍
"/api-docs", | ||
"/webjars/**", | ||
"/h2-console/**"); |
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.
👍👍👍
userDetails.getAuthorities().stream().map(GrantedAuthority::getAuthority).toList() | ||
); | ||
|
||
response.setHeader("X-AUTH-TOKEN", token); |
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.
JwtProperty 클래스에 변수(HEADER_STRING)로 추가 해도 좋을 것 같슴다ㅏㅏ!!
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.
수고하셨습니다 👍 💯
👩💻 요구 사항과 구현 내용
✅ 피드백 반영사항
🤔 PR 포인트 & 궁금한 점
관련 이슈
TLVB-236