-
Notifications
You must be signed in to change notification settings - Fork 0
[PRBE-15] 로그인 API code 처리로 수정 #10
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
Merged
Merged
Conversation
This file contains hidden or 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
[PRBE-15] 1차 배포
[PRBE-15] cors 설정 수정
[PRBE-15] swagger api 문서 보이도록 cors 설정 수정
hotfix: cors 설정 정의한 부분 적용되도록 설정 [PRBE-15]
[PRBE-15] oauth2 url의 경우 CORS에서 제외
[PRBE-15] 설정한 cors security에 설정하지 않도록 추가
…ient 를 통한 요청 추가 [PRBE-15]
📊 Jacoco Test Coverage
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
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.
🎟️ 관련 Jira 이슈
Resolves #PRBE-15
👩💻 구현 내용
💭 고려한 점
요청해야 하는 api 가 많아 webClient 비동기 체인 방식으로 진행했습니다.
💬 코멘트
로그인 로직은 다음과 같습니다.
1️⃣ code > facebookId, long-term-accesstoken 발급 체인
2️⃣ 받은 응답의 facebookId 가 DB에 저장되어 있지 않은 경우 회원가입 처리
accessToken > userInfo(id, email, username, picture(고해상도)) 가져와서 DB 저장
3️⃣ member facebook long-term-accessToken redis에 저장
4️⃣ jwt 발급 후 refreshToken redis에 저장