forked from kookmin-sw/cap-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat kookmin-sw#2 - 네이버, 카카오 로그인을 모두 지원하도록 Response 작성
- OAuth2Response oauth2의 카카오와 네이버 response를 추상화하기 위해 OAuth2Response 추상 클래스 구현 팩토리 메서드 of에 분기 처리 로직 구현 id, email, nickname을 가져올 수 있도록 추상 메서드 구현 - KakaoOAuth2Response record -> class 변경 (상속 기능을 사용하기 위함)
- Loading branch information
Showing
3 changed files
with
42 additions
and
23 deletions.
There are no files selected for viewing
3 changes: 0 additions & 3 deletions
3
src/main/java/org/capstone/maru/repository/MemberAccountRepository.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,8 @@ | ||
package org.capstone.maru.repository; | ||
|
||
import java.util.Optional; | ||
import org.capstone.maru.domain.MemberAccount; | ||
import org.capstone.maru.dto.SocialType; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
|
||
public interface MemberAccountRepository extends JpaRepository<MemberAccount, String> { | ||
|
||
Optional<MemberAccount> findBySocialTypeAndSocialId(SocialType socialType, String id); | ||
} |
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
24 changes: 13 additions & 11 deletions
24
src/main/java/org/capstone/maru/security/OAuth2Response.java
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