Skip to content

[Refactor] 구글 소셜 로그인 기능 제거#208

Merged
gaeunee2 merged 1 commit into
devfrom
refactor/207-remove-google-login
May 17, 2026
Merged

[Refactor] 구글 소셜 로그인 기능 제거#208
gaeunee2 merged 1 commit into
devfrom
refactor/207-remove-google-login

Conversation

@gaeunee2
Copy link
Copy Markdown
Collaborator

@gaeunee2 gaeunee2 commented May 17, 2026

📌 관련 이슈

🏷️ PR 타입

  • ✨ 기능 추가 (Feature)
  • 🐛 버그 수정 (Bug Fix)
  • ♻️ 리팩토링 (Refactoring)
  • 📝 문서 수정 (Documentation)
  • 🎨 스타일 변경 (Style)
  • ✅ 테스트 추가 (Test)

📝 작업 내용

구글 소셜 로그인 기능 완전 제거

중복 계정 생성을 방지하기 위해 구글 OAuth 로그인 관련 코드를 모두 제거했습니다.

제거된 파일들

  • GoogleOAuthClient.java - 구글 OAuth 클라이언트
  • GoogleTokenResponse.java - 구글 토큰 응답 DTO
  • GoogleUserResponse.java - 구글 사용자 정보 응답 DTO
  • GoogleLoginRequest.java - 구글 로그인 요청 DTO
  • GoogleUserInfo.java - 구글 사용자 정보 DTO

수정된 파일들

  • OAuthProvider.java - GOOGLE enum 제거
  • AuthController.java - /api/auth/login/google 엔드포인트 제거
  • AuthService.java - googleLogin() 메서드 및 GoogleOAuthClient 의존성 제거
  • JwtTokenProvider.java - 구글용 generateSignupToken() 메서드 제거
  • LoginResponse.java - 구글 관련 필드 및 정적 메서드 제거
  • application.yaml - 구글 OAuth 설정 제거

제거 이유

  • 구글은 한 사람이 여러 계정을 쉽게 만들 수 있어 중복 계정 생성이 용이함
  • 카카오/네이버는 전화번호 기반으로 계정당 하나의 계정만 생성 가능
  • 서비스 내 중복 사용자 증가 방지 및 공정한 사용 환경 조성

영향도

  • 기존 구글 계정 사용자: GCP 환경에서 완전 새롭게 시작하므로 기존 데이터 영향 없음
  • 새로운 사용자: 카카오/네이버 로그인만 사용 가능
  • API 변경: /api/auth/login/google 엔드포인트 제거

📸 스크린샷

  • 컴파일 성공 확인: ./gradlew compileJava 통과
  • 11개 파일 변경: 5개 파일 삭제, 6개 파일 수정
  • 총 286줄 코드 제거, 2줄 추가 (순 284줄 감소)

✅ 체크리스트

  • 코드 리뷰를 받을 준비가 완료되었습니다
  • 컴파일 테스트를 통과했습니다
  • 관련 이슈와 연결했습니다
  • 코드 스타일 가이드를 준수했습니다
  • 셀프 리뷰를 완료했습니다

📎 기타 참고사항

  • GCP 마이그레이션과 함께 진행되는 리팩토링 작업의 일환
  • 카카오/네이버 로그인 기능은 그대로 유지
  • 기존 구글 OAuth 환경변수들(GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET, GOOGLE_REDIRECT_URI)도 제거 예정
  • 프론트엔드에서도 구글 로그인 UI 제거 필요

Summary by CodeRabbit

Release Notes

  • Revert
    • Google 소셜 로그인 기능이 제거되었습니다. 이제 Kakao와 Naver 소셜 로그인만 지원됩니다. Google 계정을 통한 로그인 및 회원가입은 더 이상 불가능합니다.

Review Change Stack

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 17, 2026

📝 Walkthrough

Walkthrough

구글 소셜 로그인 기능을 완전히 제거합니다. 컨트롤러 엔드포인트, 서비스 메서드, 토큰 생성 로직, 관련 DTO 및 설정 전체를 삭제하여 구글 OAuth 흐름을 비활성화합니다.

Changes

구글 소셜 로그인 기능 제거

Layer / File(s) Summary
API 엔드포인트 제거
src/main/java/com/proovy/domain/auth/controller/AuthController.java
googleLogin 메서드와 GoogleLoginRequest import를 제거하여 POST /api/auth/login/google 엔드포인트가 더 이상 요청을 처리하지 않습니다.
인증 서비스 구현 제거
src/main/java/com/proovy/domain/auth/service/AuthService.java
googleLogin 메서드, GoogleOAuthClient 의존성 필드, 구글 관련 DTO/클라이언트 import를 모두 제거하여 서비스 계층에서 구글 인증 흐름을 완전히 제거합니다.
토큰 생성 메서드 제거
src/main/java/com/proovy/domain/auth/service/JwtTokenProvider.java
generateSignupToken(GoogleUserInfo) 메서드와 GoogleUserInfo import를 제거하여 구글 회원가입용 임시 토큰 발급 기능을 제거합니다.
응답 타입 및 설정 정리
src/main/java/com/proovy/domain/auth/dto/response/LoginResponse.java, src/main/java/com/proovy/domain/user/entity/OAuthProvider.java, src/main/resources/application.yaml
LoginResponse에서 googleInfo 필드와 signupRequired 팩토리 메서드를 제거하고, OAuthProvider enum에서 GOOGLE 상수를 삭제하며, 설정 파일에서 google oauth 블록을 제거합니다.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

  • Team-Proovy/Proovy-server#63: 메인 PR이 구글 로그인 엔드포인트/DTO/서비스/클라이언트를 완전히 제거한 변경과 해당 PR이 GoogleLoginRequest/AuthService.googleLogin/GoogleOAuthClient의 같은 구성요소를 건드린 변경이 직접적으로 충돌합니다.
  • Team-Proovy/Proovy-server#26: 해당 PR은 AuthController.googleLogin, GoogleLoginRequest, GoogleUserResponse, GoogleTokenResponse, GoogleOAuthClient, AuthService.googleLogin, LoginResponse.googleInfo, JwtTokenProvider.generateSignupToken 같은 동일한 구성요소들을 추가했으므로 메인 PR의 제거 작업과 직접 반대 관계입니다.
  • Team-Proovy/Proovy-server#25: 메인 PR이 LoginResponse에서 googleInfo 필드와 signupRequired 팩토리 메서드를 제거한 변경과 해당 PR이 네이버 관련 필드와 메서드를 추가한 변경이 같은 LoginResponse DTO 구조를 공유합니다.

Suggested labels

refactor, 👤Auth

Suggested reviewers

  • chowon442
  • haein45

Poem

🐰 구글의 문을 닫으니 깔끔하네요,
카카오와 네이버만 남아 반갑고,
중복 계정은 이제 안녕,
서비스는 더욱 깨끗하고 정직하게 💫

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed PR 제목이 주요 변경사항인 구글 소셜 로그인 기능 제거를 명확하게 요약하고 있습니다.
Description check ✅ Passed PR 설명이 템플릿의 주요 섹션(관련 이슈, PR 타입, 작업 내용, 체크리스트)을 완벽하게 포함하고 있으며 상세한 내용을 제공합니다.
Linked Issues check ✅ Passed PR에서 제거된 모든 구글 OAuth 관련 코드, 엔드포인트, 설정은 #207 이슈의 모든 개발 목적과 요구사항을 충족합니다.
Out of Scope Changes check ✅ Passed 모든 변경사항이 구글 소셜 로그인 기능 제거라는 범위 내에 있으며, 카카오/네이버 기능은 그대로 유지되어 있습니다.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch refactor/207-remove-google-login

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@gaeunee2 gaeunee2 changed the title refactor: 구글 소셜 로그인 기능 제거 [Refactor] 구글 소셜 로그인 기능 제거 May 17, 2026
@gaeunee2 gaeunee2 self-assigned this May 17, 2026
Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@src/main/java/com/proovy/domain/user/entity/OAuthProvider.java`:
- Around line 3-5: OAuthProvider enum removed the GOOGLE constant which will
cause IllegalArgumentException when JPA tries to load rows with
provider='GOOGLE' (OAuthProvider.valueOf("GOOGLE")), so either ensure DB is
brand-new or migrate/delete those records before deploy; alternatively add a
safe handling path by temporarily reintroducing a GOOGLE enum constant in
OAuthProvider or implementing a static from(String) method/AttributeConverter
that maps unknown values to a fallback (e.g., UNKNOWN) and update migration
scripts to convert or remove GOOGLE rows and include rollback/backup steps.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 96cd2ad7-000a-40ed-b38e-7d6b473bb08b

📥 Commits

Reviewing files that changed from the base of the PR and between 0015784 and 27c09b2.

📒 Files selected for processing (11)
  • src/main/java/com/proovy/domain/auth/controller/AuthController.java
  • src/main/java/com/proovy/domain/auth/dto/google/GoogleTokenResponse.java
  • src/main/java/com/proovy/domain/auth/dto/google/GoogleUserResponse.java
  • src/main/java/com/proovy/domain/auth/dto/request/GoogleLoginRequest.java
  • src/main/java/com/proovy/domain/auth/dto/response/GoogleUserInfo.java
  • src/main/java/com/proovy/domain/auth/dto/response/LoginResponse.java
  • src/main/java/com/proovy/domain/auth/provider/GoogleOAuthClient.java
  • src/main/java/com/proovy/domain/auth/service/AuthService.java
  • src/main/java/com/proovy/domain/auth/service/JwtTokenProvider.java
  • src/main/java/com/proovy/domain/user/entity/OAuthProvider.java
  • src/main/resources/application.yaml
💤 Files with no reviewable changes (9)
  • src/main/java/com/proovy/domain/auth/dto/response/GoogleUserInfo.java
  • src/main/java/com/proovy/domain/auth/dto/google/GoogleUserResponse.java
  • src/main/java/com/proovy/domain/auth/dto/request/GoogleLoginRequest.java
  • src/main/java/com/proovy/domain/auth/dto/google/GoogleTokenResponse.java
  • src/main/java/com/proovy/domain/auth/provider/GoogleOAuthClient.java
  • src/main/resources/application.yaml
  • src/main/java/com/proovy/domain/auth/service/AuthService.java
  • src/main/java/com/proovy/domain/auth/service/JwtTokenProvider.java
  • src/main/java/com/proovy/domain/auth/controller/AuthController.java

Comment thread src/main/java/com/proovy/domain/user/entity/OAuthProvider.java
@gaeunee2 gaeunee2 requested a review from chowon442 May 17, 2026 09:03
Copy link
Copy Markdown
Member

@chowon442 chowon442 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

꼼꼼하네요!

@gaeunee2
Copy link
Copy Markdown
Collaborator Author

꼼꼼하네요!

꼼장어입니다.

@gaeunee2 gaeunee2 merged commit 48cd22b into dev May 17, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feat] 구글 소셜 로그인 기능 제거

2 participants