[FEAT #118] FeignClient를 사용한 카카오 로그인 구현 #119
Merged
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.
📄 Work Description
⚙️ ISSUE
📷 Screenshot
💬 To Reviewers
아래와 같이 인터페이스를 만들고, 내부에 호출할 메서드(kakao 서버와 통신할)를 만들었습니다.
https://github.com/UMC5th-bias/Server/blob/b672e876e9438903ccfb9dca526c2c7a779c7f30/src/main/java/com/favoriteplace/global/security/kakao/KakaoClient.java#L9-L14
현재 로직상 토큰 claim을 생성할 때 사용자의 이메일을 기반으로 만들고 있기 때문에, 카카오 로그인시에 필수로 이메일을 받아오도록 했습니다!
https://github.com/UMC5th-bias/Server/blob/b672e876e9438903ccfb9dca526c2c7a779c7f30/src/main/java/com/favoriteplace/app/dto/member/AuthKakaoLoginDto.java#L5-L15
사용자에게 보여지는 화면은 다음과 같습니다!
🔗 Reference
참고한 블로그