-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
✨ Feature기능 개발기능 개발
Description
🔐 Apple 소셜 로그인 기능 추가
배경
기존 척척학사는 Kakao 소셜 로그인만 지원하고 있었으나, Suwiki와의 서비스 통합으로 인해 Apple 소셜 로그인 지원이 필요해졌습니다.
✅ 작업 항목
- Apple Developer 계정 준비 및 서비스 ID 생성
- Apple 로그인용 redirect URI 등록 및 검증
- Spring Security OAuth2 Client 설정에 Apple Provider 추가
-
id_token파싱 및 사용자 정보 추출 (sub,email,nonce등) - Kakao 로그인과 동일한 방식으로 JWT 발급 로직 통합
- 신규 유저일 경우 자동 회원가입 처리
- 기존 Suwiki 유저와 매핑을 위한 이메일 기반 연결 로직 구현 (optional)
- API 명세 수정 (
/api/users/signin등) - 프론트엔드 Apple 로그인 버튼 연동
🔗 참고 자료
- https://developer.apple.com/sign-in-with-apple/
- Adding 'audience' to ClientRegistration for OAuth2.0 client-credentials flow spring-projects/spring-security#7379
💡 비고
- 기존 Kakao 로그인과 동일한 JWT 기반 인증 흐름을 유지할 예정입니다.
nonce기반 검증 필요 (Replay 공격 방지용).- 프론트엔드 도메인 기준
https://www.cchaksa.com에서 Apple 로그인 연동되어야 함.
Metadata
Metadata
Assignees
Labels
✨ Feature기능 개발기능 개발