-
Notifications
You must be signed in to change notification settings - Fork 0
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 #4] : 시큐리티 세팅 및 소셜 로그인 API 구현 #13
Conversation
- Provider로부터 획득한 유저 정보 처리 Service 구현
- 인증 객체 Custom Dto 추가 - AuthDto.class, CustomOauth2User.class
- 네이버 소셜로그인 도입을 고려한 Oauth2Response interface 구현 - 카카오 소셜로그인을 위한 Oauth2Response 구현체 KakaoResponse 구현
- socialEmail로 회원을 찾는 쿼리 메서드 구현
- Custom Authentication 객체 구현
- 신규 유저 또는 기존 유저 구분 후 저장 또는 업데이트 로직 메서드 추출 - 단일 책임 원칙(SRP)를 위한 책임 분배(createSocialName(), createMemberFromOauth2Response()) - MemberRepository.findBySocialEmail() return Type 변경(Member -> Optional<Member>)
- Member로 Auth 찾는 쿼리 메서드 추가
- Auth 저장 또는 업데이트 메서드 구현 - 기존 회원 구분 메서드 구현
- 회원 구분하여 신규 회원일시 추가 정보 기입 페이지로 리다이렉트 구현
- saveOrUpdate(Oauth2Response oauth2Response) : CustomeOauth2userService.class -> MemberService.class
- KAKKOA -> KAKAO 수정
- kakao login api 구현
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.
수정하느라 고생 많으셨습니다!!
src/main/java/com/dnd/gongmuin/member/controller/MemberController.java
Outdated
Show resolved
Hide resolved
src/main/java/com/dnd/gongmuin/member/exception/MemberErrorCode.java
Outdated
Show resolved
Hide resolved
@hyun2371 수정사항 현재 다 수정했습니다! 낮에 물어보신 @AuthenticationPrincipal 를 통해 인증객체를 꺼낼 때 Member로 바로 꺼낼 수 있게 해주시면 안되냐고 하셨는데, |
오 감사합니다🙂 늦은 시간까지 고생많으셨어요!!👍 |
src/test/java/com/dnd/gongmuin/security/jwt/TokenProviderTest.java
Outdated
Show resolved
Hide resolved
src/test/java/com/dnd/gongmuin/auth/service/AuthServiceTest.java
Outdated
Show resolved
Hide resolved
src/test/java/com/dnd/gongmuin/member/repository/MemberRepositoryTest.java
Outdated
Show resolved
Hide resolved
- Auth - Member 로딩 전략 변경(Eager -> Lazy) - 가독성을 위한 static import 제거
관련 이슈
📑 작업 상세 내용
💫 작업 요약
🔍 중점적으로 리뷰 할 부분