Merged
Conversation
- PortOne V2 API 통합 - 본인인증 기반 회원 정보 검증 및 CI/DI 저장 - 프로필 관리 API (조회/수정) 구현 - 여행 스타일 시스템 추가 (8가지 스타일 자동 초기화) - 중복 가입 방지 (CI 기반) - 테스트 환경 대응 (CI/DI 선택적 처리) - CORS 설정 개선 (개발 환경 localhost 포트 패턴 허용)
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.
🔍 PR 타입 선택
feat: 새로운 기능 추가fix: 버그 수정docs: 문서 수정style: 코드 포맷팅, 세미콜론 누락, 코드 변경이 없는 경우refactor: 코드 리팩토링test: 테스트 코드 추가 또는 수정chore: 빌드 업무 수정, 패키지 매니저 수정 등 기타 작업📝 변경 사항 요약
PortOne V2 본인인증 시스템 통합 및 사용자 프로필 관리 기능 추가
주요 기능
PortOne V2 API 통합
프로필 관리 시스템
GET /api/users/profile)PATCH /api/users/profile)PATCH /api/users/notification)여행 스타일 관리
GET /api/travel-styles)보안 강화
🛠 관련 이슈
close: #[이슈번호]
📋 상세 변경 내역
1️⃣ PortOne V2 통합
새로운 설정 (application.properties)
새로운 파일
PortOneConfig.java: V2 설정 관리IdentityVerificationService.java: V2 API 호출 및 인증 정보 검증VerifyIdentityRequest.java/VerifyIdentityResponse.java: DTOAPI 변경사항
POST /api/auth/verify-identityAuthorization: PortOne {apiSecret}status: "VERIFIED"verifiedCustomer객체 (name, gender, birthDate, ci, di)2️⃣ 프로필 관리
새로운 Controller
ProfileController.javaGET /api/users/profile: 프로필 조회PATCH /api/users/profile: 프로필 수정PATCH /api/users/notification: 알림 설정새로운 Service
ProfileService.java새로운 DTO
ProfileResponse.java: 프로필 조회 응답UpdateProfileRequest.java: 프로필 수정 요청UpdateNotificationRequest.java: 알림 설정 요청3️⃣ 여행 스타일 시스템
새로운 Entity
TravelStyle.java: 여행 스타일 엔티티MemberTravelStyle.java: 회원-여행스타일 연관 엔티티자동 초기화
DataInitializer.java: 애플리케이션 시작 시 8가지 여행 스타일 자동 생성새로운 Controller
TravelStyleController.javaGET /api/travel-styles: 전체 여행 스타일 조회새로운 Service
TravelStyleService.java: 여행 스타일 CRUD 로직4️⃣ Member Entity 확장
새로운 필드
새로운 메서드
5️⃣ Repository 확장
MemberRepository 추가 메서드
새로운 Repository
MemberQueryRepository/MemberQuerydslRepository: QueryDSL 기반 조회TravelStyleRepository: 여행 스타일 CRUDMemberTravelStyleRepository: 회원-여행스타일 관계 관리6️⃣ 예외 처리
새로운 Exception
PortOneApiException.java: PortOne API 호출 실패 시DuplicateUserException.java: 생성자 수정 (파라미터 없음)7️⃣ 보안 설정
SecurityConfig 업데이트
CORS 설정 개선
8️⃣ 의존성 추가
build.gradle
✅ 테스트 체크리스트
🔄 Breaking Changes
PortOne V1 → V2 마이그레이션
변경된 설정:
imp_code,api_key,api_secret(2-3 keys)store_id,channel_key,api_secret(3 keys)변경된 API:
api.iamport.kr/certifications→api.portone.io/identity-verificationsBearer {token}→PortOne {secret}imp_uid→identityVerificationId마이그레이션 가이드:
application.properties에 V2 키 설정cdn.portone.io/v2/browser-sdk.js📸 스크린샷 (선택 사항)
📚 추가 문서
👥 리뷰어 참고 사항
중점 리뷰 항목
추후 개선 사항
🙏 Thanks
PortOne V2 API 통합 및 사용자 프로필 관리 시스템 구현을 완료했습니다.
리뷰 부탁드립니다! 🚀