Conversation
3 tasks
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.
📋 PR 체크리스트
feature/이슈번호-기능명)🎯 작업 내용
변경사항
기존 OAuth2 방식에서는 Access Token을 발급받은 후, 사용자 정보를 가져오기 위해 별도의 API를 다시 호출해야 했습니다. OIDC 프로토콜을 도입하여 이 과정을 개선했습니다. 이제는 인증과 동시에 ID Token을 발급받고, 해당 토큰 안에 포함된 사용자 정보를 직접 사용하여 로그인 처리를 완료합니다. 이 변경으로 로그인 흐름이 더 간결해지고 보안적으로 강화되었습니다.
주요 구현 내용은 다음과 같습니다.
로그인 API 통합 및 표준화
GET /api/auth/login/{provider}라는 단일 엔드포인트를 통해 Kakao와 Google 로그인을 모두 처리하도록 구현했습니다. {provider} 경로 변수(path variable)를 통해 어떤 소셜 로그인을 사용할지 동적으로 결정하므로, 앞으로 다른 소셜 로그인을 추가하더라도 확장성 있게 대응할 수 있습니다.
ID Token 기반의 인증 로직 구현
작업 유형
🔗 관련 이슈
#6
🧪 테스트 방법
📸 스크린샷 (선택사항)
💬 추가 설명