Skip to content

Conversation

@yerim123456
Copy link
Contributor

@yerim123456 yerim123456 commented Mar 5, 2025

🎟️ 관련 Jira 이슈

Resolves #PRBE-15

👩‍💻 구현 내용

  • 프론트에서 facebook code 발급 받아서 로그인 처리되도록 설정

💭 고려한 점

요청해야 하는 api 가 많아 webClient 비동기 체인 방식으로 진행했습니다.

💬 코멘트

로그인 로직은 다음과 같습니다.
1️⃣ code > facebookId, long-term-accesstoken 발급 체인

  1. code > code 유효성 검사 > accessToken 으로 변환
  2. accessToken > long term accessToken 으로 변환 및 발급
  3. accessToken > facebookId 갖고 오기

2️⃣ 받은 응답의 facebookId 가 DB에 저장되어 있지 않은 경우 회원가입 처리
accessToken > userInfo(id, email, username, picture(고해상도)) 가져와서 DB 저장

3️⃣ member facebook long-term-accessToken redis에 저장

4️⃣ jwt 발급 후 refreshToken redis에 저장

yerim123456 and others added 25 commits March 3, 2025 11:05
[PRBE-15] swagger api 문서 보이도록 cors 설정 수정
hotfix: cors 설정 정의한 부분 적용되도록 설정 [PRBE-15]
 [PRBE-15] oauth2 url의 경우  CORS에서 제외
 [PRBE-15] 설정한 cors security에 설정하지 않도록 추가
@yerim123456 yerim123456 added bug Something isn't working documentation Improvements or additions to documentation feat labels Mar 5, 2025
@yerim123456 yerim123456 self-assigned this Mar 5, 2025
@github-actions
Copy link

github-actions bot commented Mar 5, 2025

📊 Jacoco Test Coverage

Overall Project NaN% NaN% 🍏

There is no coverage information present for the Files changed

@yerim123456 yerim123456 merged commit 22e604d into develop Mar 5, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working documentation Improvements or additions to documentation feat

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants