[Refactor] 사용자 프로필 조회 응답 DTO 정리 #31 - #40
Merged
Merged
Conversation
Member
|
혹시 Keycloak의 name은 어떻게 설정되는 값인가요? Keycloak에서도 따로 설정 가능한 부분이 안보이는 것 같은데, Keycloak 쪽에서 Keycloak 쪽 설정을 변경하여 |
Collaborator
Author
keycloak의 id token 내 name이라는 필드에 '현제 이' 같은 방식으로 full name이 들어오게 됩니다. |
Collaborator
Author
@asitisdev 새 커밋에 반영 완료 되었습니다 |
Member
|
Conflict 해결해주세요 |
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.

📌 변경 요약 (Summary)
GET /api/v1/auth/profile엔드포인트의 레거시 응답 필드와 파라미터를 정리하고, Keycloak 기반 사용자 이름 처리 로직을 명확히 했습니다.🔗 관련 이슈 (Related Issue)
Closes #31
🛠 작업 내용 / 작업 순서 (Implementation Details)
projectId파라미터 제거project필드 제거univ하위 필드명을univDepartment에서department로 변경name,given_name,family_name클레임을 파싱하도록 확장name클레임을 우선 사용하도록 정리✨ 주요 변경 사항 (Key Changes)
projectId파라미터 제거{ userName, univ: { grade, department } }형태로 정리name클레임을 그대로 사용하지 않고,family_name + given_name을 우선 사용ajou_lastName + ajou_firstName, 이후name,preferred_username순으로 fallback 처리user_detail.user_name이 동일한 기준으로 동기화되도록 수정🧪 테스트 결과 (Test Results)
테스트 환경
.env에 설정된 실제 SSO 서버.env에 설정된 실제 OpenStack 서버테스트 방법
acc-session-id로/api/v1/auth/profile요청테스트 결과