-
Notifications
You must be signed in to change notification settings - Fork 1
[WTH-64] 애플로 로그인 기능 추가 #226
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
The head ref may contain hidden characters: "feat/WTH-64-Weeth-Leenk-\uC560\uD50C\uB85C-\uB85C\uADF8\uC778-\uAE30\uB2A5-\uCD94\uAC00"
Changes from all commits
3100ed0
99e1ac3
5d4d7f4
f92a384
272771d
ed9ea5e
49592a2
5db0cc4
e78b9a9
5b4e56e
5d6686e
c2b0792
ecda68d
559e447
4c336cd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -68,6 +68,20 @@ public CommonResponse<SocialLoginResponse> integrate(@RequestBody @Valid NormalL | |
| return CommonResponse.createSuccess(SOCIAL_INTEGRATE_SUCCESS.getMessage(), userUseCase.integrate(dto)); | ||
| } | ||
|
|
||
| @PostMapping("/apple/login") | ||
| @Operation(summary = "애플 소셜 로그인 API") | ||
| public CommonResponse<SocialLoginResponse> appleLogin(@RequestBody @Valid Login dto) { | ||
| SocialLoginResponse response = userUseCase.appleLogin(dto); | ||
| return CommonResponse.createSuccess(SOCIAL_LOGIN_SUCCESS.getMessage(), response); | ||
| } | ||
|
|
||
| @PostMapping("/apple/register") | ||
| @Operation(summary = "애플 소셜 회원가입 (dev 전용 - 바로 ACTIVE)") | ||
| public CommonResponse<Void> appleRegister(@RequestBody @Valid Register dto) { | ||
| userUseCase.appleRegister(dto); | ||
| return CommonResponse.createSuccess(USER_APPLY_SUCCESS.getMessage()); | ||
| } | ||
|
Comment on lines
+78
to
+83
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain개발 전용 자동 승인 로직의 프로덕션 사용을 검증하세요. 엔드포인트 설명에 "dev 전용 - 바로 ACTIVE"라고 명시되어 있으나, 코드 상에서는 환경에 따른 분기 처리가 보이지 않습니다. 앱 심사를 위한 의도적인 구현이라고 명시되어 있지만, 프로덕션 환경에서 이 엔드포인트가 노출되지 않도록 하거나 환경별로 승인 로직이 다르게 동작하는지 확인이 필요합니다. 다음 스크립트로 환경별 분기 처리 여부를 확인해주세요: 🏁 Script executed: #!/bin/bash
# Description: Apple 회원가입 관련 환경별 분기 처리 확인
# Apple register 구현체에서 환경 변수나 프로파일 기반 분기 확인
rg -n "appleRegister" --type=java -A 20 | rg -i "profile|environment|active|dev|prod"
# 사용자 승인 관련 로직 확인
rg -n "setStatus|ACTIVE|PENDING" --type=java -g "*User*Impl.java" -C 5Length of output: 1174 환경별 분기 처리를 더 자세히 확인하겠습니다. 추가 정보를 수집하겠습니다. 전체 메서드 구현과 클래스 레벨의 조건부 설정을 확인하겠습니다. 프로덕션 환경에서 자동 승인 로직이 보호되지 않습니다. 실행 결과 확인 결과, 필수 조치:
🤖 Prompt for AI Agents |
||
|
|
||
| @GetMapping("/email") | ||
| @Operation(summary = "이메일 중복 확인") | ||
| public CommonResponse<Boolean> checkEmail(@RequestParam String email) { | ||
|
|
||
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.
appleIdToken는 왜 null값이 들어가나요? kakaoId는 null값이 아닌거로 이해했어요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.
현재 해당 메서드가 카카오 연동 과정에서만 쓰이고 있어요! 애플은 toAppleIntegrateResponse로 별도로 채워서 보여주고 있습니당