-
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] 소셜 로그인 관련 기능 구현 #83
Merged
+2,867
−122
Conversation
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
- 관련 ErrorCode 메시지 추가 - try-catch 구문으로 예외 제어
- AuthInfo가 Member를 외래키로 가지도록 설정 - Member에서 refreshToken, authId, authType 값을 분리
- 멤버 생성 createMember 메소드 구현
- Member 생성에 필요한 AuthInfo 관련 파라미터 삭제
- auth를 제외한 모든 경로에 적용
- AuthInfo 생성을 이한 createAuthInfo 구현
- 카카오 서버 토큰 요청을 위한 requestToken 구현
- 내부에 KakaoErrorInfo 구현하여 에러 여부 확인
- 기존 Oauth 용어인 Code로 명칭 통일
- S3Storage Bean 주입 메소드 작성
- 명칭 임시 지정(dev, prod)
- Object -> String 파라미터 타입 수정
# Conflicts: # src/main/java/org/noostak/auth/api/OauthController.java
- 관련하여 유효성 검증 수행 - 에러코드 추가
- 기존 사용자일 경우 refreshToken을 업데이트
- AuthId를 키 값으로 사용하여 JwtToken을 지정된 시간동안 유지하는 기능 구현 - 스케줄링을 통해 만료된 JwtToken과 AuthId 정보를 삭제하는 기능 구현
- 멤버가 아닐 경우 인증 정보를 임시적으로 유지하는 로직 추가 - authId를 이용해서 임시 정보를 불러오는 로직 추가
- 클라이언트에게서 authType과 인가 코드를 받아 소셜 서비스에 인증하여, 멤버 여부, authId, 토큰을 반환하는 API 구현 - 기존 signUp에서 인가 코드를 통해 소셜 서비스를 인증하는 로직 제거 - authId를 통해서 서버 메모리에 저장된jwtToken을 조회하는 흐름으로 변경
- oauth-config.yml 파일을 working-directory에 추가
- AuthId, AuthType 도메인 변경으로 인한 패키지 import 수정 - findByMember_MemberId -> findByMemberId 수정
- null을 허용할 수 없도록 변경 - 파라미터로 받은 token에 대하여 유효성 검증을 수행하도록 로직 변경
- APPLE 삭제
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.
🚀 What’s this PR about?
🛠️ What’s been done?
🧪 Testing Details
👀 Checkpoints for Reviewers
🎯 Related Issues