[#718] GitHub 인증을 서버 callback과 공통 OAuth 모델 기반으로 전환한다#721
Merged
Conversation
Contributor
There was a problem hiding this comment.
Code Review
이 풀 리퀘스트는 GitHub 및 Apple 소셜 로그인 흐름을 리팩토링하여 클라이언트 측의 복잡한 OAuth 인증 로직을 Firebase Functions 및 신규 공통 세션 처리 클래스(OAuthWebAuthenticationProof, OAuthWebAuthenticationSession)로 이관하고, 불필요한 액세스 토큰 저장 로직을 제거합니다. 리뷰 피드백으로는 OAuthWebAuthenticationProof에서 콜백 URL의 호스트를 비교할 때 RFC 3986 표준에 따라 대소문자 구분 없이 안전하게 비교하도록 caseInsensitiveCompare를 사용할 것을 제안했습니다.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
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
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.
🔗 연관된 이슈
🎯 의도
📝 작업 내용
📌 요약
OAuthWebAuthenticationProof와OAuthWebAuthenticationSession추가🔍 상세
authorizationURL을 요청하는 흐름으로 변경ASWebAuthenticationSession에서 서버가 반환한 URL을 표시하도록 변경DevLog://oauth-callback에서 일회용 ticket만 추출하도록 변경signIn(withCustomToken:)에 사용하는 로그인 흐름 구성nil, 계정 연결 취소 시false를 반환하는 기존 동작 유지/user,/user/emails직접 호출 제거githubAccessToken저장·삭제 로직 제거AuthDataResponse.accessToken제거APP_REDIRECT_URL,GITHUB_CLIENT_ID제거DevLogURL scheme 유지AppleCustomTokenResponse를FirebaseCustomTokenResponse로 변경AppleOperationResponse를EmptyAPIResponse로 대체📸 영상 / 이미지 (Optional)