-
Notifications
You must be signed in to change notification settings - Fork 3
feat: [NDGL-148] 유저 엔티티 소셜 로그인 필드 추가 #78
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
WooJJam
merged 3 commits into
feature/NDGL-147-Server-Spring-Security-도입
from
feature/NDGL-148-Server-유저-엔티티-소셜-로그인-필드-추가
Jun 1, 2026
The head ref may contain hidden characters: "feature/NDGL-148-Server-\uC720\uC800-\uC5D4\uD2F0\uD2F0-\uC18C\uC15C-\uB85C\uADF8\uC778-\uD544\uB4DC-\uCD94\uAC00"
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
common/src/main/java/com/yapp/ndgl/common/type/SocialProvider.java
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| package com.yapp.ndgl.common.type; | ||
|
|
||
| import lombok.Getter; | ||
| import lombok.RequiredArgsConstructor; | ||
|
|
||
| @Getter | ||
| @RequiredArgsConstructor | ||
| public enum SocialProvider { | ||
| KAKAO("카카오"), | ||
| APPLE("애플"); | ||
|
|
||
| private final String label; | ||
| } |
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
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
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: YAPP-Github/NDGL-BE
Length of output: 2037
🏁 Script executed:
Repository: YAPP-Github/NDGL-BE
Length of output: 417
🏁 Script executed:
Repository: YAPP-Github/NDGL-BE
Length of output: 5768
🏁 Script executed:
Repository: YAPP-Github/NDGL-BE
Length of output: 3813
소셜 계정 중복 생성 시 예외 처리(409/500) 및 레이스 대응 확인 필요
UserEntity에(provider, provider_id)유니크 제약이 있고,createSocialUser는 별도 선검사 없이 바로save를 수행하므로 동시 요청 시DataIntegrityViolationException이 발생할 수 있습니다. 전역ApiExceptionHandler는DataIntegrityViolationException의cause가org.hibernate.exception.ConstraintViolationException일 때만CommonErrorCode.DATA_INTEGRITY_VIOLATION로 409(CONFLICT) 처리하고, 그 외에는 500으로 떨어집니다. 레이스 상황에서 실제로 해당 cause가 항상 매핑되는지(또는 호출부/도메인에서 일관된 예외로 변환하는지) 확인이 필요합니다.🤖 Prompt for AI Agents