Repository navigation
feat: 소셜 계정 엔티티 SocialAccount 추가 (#32) - #56
Merged
Merged
Conversation
oTAETAEo
previously approved these changes
Oct 31, 2026
| @NoArgsConstructor(access = AccessLevel.PROTECTED) | ||
| public class SocialAccount extends BaseCreatedTimeEntity { | ||
|
|
||
| public static final int PROVIDER_USER_ID_MAX_LENGTH = 100; |
Contributor
There was a problem hiding this comment.
해당 부분 providerUserId 의 최대 길이 값으로 이해 했습니다, 아래 문서 확인 해 보니까 최대 255자(영문 기준) 이라고 되어있어서 한번 확인 부탁 드립니당
https://developers.google.com/identity/openid-connect/openid-connect?hl=ko
Contributor
Author
There was a problem hiding this comment.
확인 감사합니다!
첨부해주신 문서보니 sub가 최대 255자 맞아서 새 마이그레이션으로 VARCHAR(255)로 늘렸습니다.
추가로 문서에 sub가 대소문자를 구분하는 ASCII라고 명시되어있더라고요. 근데 저희 테이블 기본 정렬 규칙은 대소문자를 구분하지 않아서, 대소문자만 다른 계정을 같은 계정으로 볼 수도 있을 거 같아 컬럼을 ascii_bin으로 바꾸고 관련 테스트랑 ERD도 같이 고쳤습니다 ~
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.
관련 이슈
작업 내용
SocialAccount엔티티·SocialProvider(GOOGLE)·레포지토리 (ERD 3-2)findByProviderAndProviderUserId: 로그인 때 구글 계정 고유값(sub)으로 연결된 회원 찾기명세와 달라진 점
ERD 3-2 provider_user_id: VARCHAR(100) → VARCHAR(255)·ascii_bin.
구글 sub 규격(대소문자 구분 ASCII 최대 255자)에 맞췄고, 새 마이그레이션 V202610311700으로 반영했습니다.
참고 문서 : (https://developers.google.com/identity/openid-connect/openid-connect)
테스트
11개, 전체 ./gradlew build 통과
확인 체크리스트
./gradlew build통과global공통 코드를 바꿨다면 디스코드에 공유함 (해당 없음)