MSG-452 fix: 앱 카카오 로그인 401 해소, 네이티브 앱 키를 aud로 허용 - #198
Merged
Conversation
|
Claude finished @s13121312's task in 1m 40s —— View job 작업 목록
확인한 범위
발견 사항 없음. |
테스트 커버리지
|
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.
🎫 관련 티켓
작업 내용
KakaoOidcProperties에appClientId필드를 추가했다. 값은 application.yml에 직접 뒀다 — 네이티브 앱 키는 APK에 포함되는 공개 식별자라 시크릿이 아니고, 덕분에 배포 환경변수 변경이 없다OidcDecoderConfig.audienceValidator(Set)정적 메서드로 추출하고 단위 테스트 3건을 새로 넣었다 (웹 REST 키 통과 / 앱 네이티브 키 통과 / 미허용 키 거부)변경 파일 (6개, +69/−8):
🤔 고민한 내용
Set.of(clientId, appClientId)한 줄이라 JWKS 서명 테스트 인프라 신설 비용 대비 이득이 없다고 봤다👀 리뷰 포인트
Footnotes
aud(audience): ID 토큰이 "누구에게 발급된 토큰인지"를 담는 클레임. 검증 서버는 자기 앱 키가 aud에 있는지 대조해 남의 앱에 발급된 토큰을 걸러낸다. ↩