Open
Conversation
Owner
|
와... 자세한 코드리뷰 감사합니다👍 |
Collaborator
|
🙌 꼼꼼한 코드 리뷰 넘나 감사합니다.
시큐리티 공부가 아직 덜 된 상태라서 코드가 많이 더러운 상태인데도 봐주셔서 감사합니다 종윤님 !! |
Author
|
UsernamePasswordAuthenticationToken userDetails 전체를 넣을 필요가 있을까요? --> 저렇게 하면 Role이 업데이트 될때 추가 로직이 필요 할것 같네요 |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
용현님 구현 파트에 대한 리뷰입니다
코드에 한줄씩 달면 알람이 왕창 갈꺼 같아서 요런식으로 남겨봅니다
백엔드 코드만 보았고 제가 짠 코드가 아니라서 내용이 틀릴수도 있어요
미리 미안합니다 우리 조장님 (;´д`)ゞ 😸😸😸😸
CorsConfig URL과 Cookie Domain URL이 같은 값이라면 CONST나 환경변수로 같이 묶어 주면 좋을것 같아요
MemberService 로그아웃 시 한번 더 검증 하는 이유가 있을까요?
JwtAuthenticationFilter
AT = Access RT = Refresh
-> AT에 대한 검증을 먼저 하면 좋을것 같아요 extractExpiredCheck에서 사용하는 decode는 토큰의 정상여부를 보장 하지 않는다고 하네요
-> 다음 필터로 넘어가나요?
tokenService.createNewTokens에서 예외 처리 없음
EX) RT가 비정상이면 NPE
RT 만료 체크 없음
대부분 정상적인 접근의 경우에는 일어나지 않을 일 이지만 혹시 모르니...
RT에 대한 검증만 추가하면 대부분 막힐것 같아용
java-jwt 라이브러리는 JWTVerifier 클래스가 검증 메소드를 제공한다고 하네요 DOCS
getAuthentication != null : Line 79에서 set하기 전까지는 null일것 같은데 null이 아닌 경우가 있나요?
UsernamePasswordAuthenticationToken userDetails 전체를 넣을 필요가 있을까요?
Authentication의 principal을 email로
Password를 사용 하는 로직이 없다면 credentials를 null로 넣어 줘도 괜찮을 것 같아요
궁금한 점
Spring Security의 Login, Logout logic대신 커스텀 컨트롤러로 구현하신 이유가 있으실까요?
🦖 🦖 🦖 🦖