-
Notifications
You must be signed in to change notification settings - Fork 1
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
✨ [Feat] 카카오 소셜 로그인 구현 #77
Conversation
…Backend into issue/38-kakao-login # Conflicts: # src/main/java/ssuPlector/controller/DeveloperController.java
…Backend into issue/38-kakao-login # Conflicts: # build.gradle # src/main/resources/application.yml
…Backend into issue/38-kakao-login # Conflicts: # src/main/java/ssuPlector/domain/Developer.java
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.
수고하셨습니다!!. 어려운 개념이긴 하지만 노션 계속 참고해서 읽으니까 이해도 잘되고 전반전인 구조를 잘 이해할 수 있었습니다. 구현하시느라 수고하셨어요!
@@ -41,8 +42,7 @@ public ApiResponse<String> kakaoLogout( | |||
|
|||
@Operation(summary = "토큰 재발급", description = "토큰을 재발급 합니다._숙희") | |||
@PostMapping("/kakao/refresh") | |||
public ApiResponse<TokenRefreshResponse> refresh( | |||
@RequestParam("refreshToken") String refreshToken) { | |||
public ApiResponse<TokenRefreshResponse> refresh(@ExtractToken String refreshToken) { |
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.
해당 어노테이션에서는 HTTP 요청 헤더에서 Authorization값을 추출해서 유효한지 체크하고 refreshToken으로 넘기는 과정으로 동작합니다! 그전에는 그냥 리프레시 토큰을 입력받는 형식으로 구성되어있는데, 그것보다 이후의 로직이 좀 더 나은거 같아 수정했습니다 !
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.
제가 아직 잘 모르는 부분이라 코드 관련해서 노션에 정리해두신 자료 꼼꼼히 읽어보면서 코드 확인해봤습니다.
스웨거 인터페이스에 �객체 나타내기 위해서 제너릭 명시한 부분 확인했습니다.
UserDetail이랑 토큰 처리 로직, 카카오 인증 로직도 확인했습니다.
새로 접했던 개념들은 pr 리뷰 이후에도 따로 공부 해보도록 하겠습니다.
코드 작성하느라 수고 많으셨습니다~!
resolveArgument 이 부분에서 developerService.getDeveloper(userId) 사용하는데 |
📍 PR 타입
❗️ 관련 이슈 링크
Close #38
🔁 변경 및 추가사항
로그인/로그아웃/리프레시 토큰 발급 컨트롤러 181316e
커스텀 어노테이션
securityConfig 설정 03ae06f
컨트롤러 제네릭 타입 추가 fa19a3a
📚 레퍼런스 (또는 새로 알게 된 내용) 혹은 궁금한 사항들
✅ 체크 리스트