feat: 관리자 로그인 API 구현 (#36) #37

Merged
seonkyu.kim merged 1 commits from feature/#36-admin-login into develop 2026-02-09 13:53:45 +00:00
Owner

📋 작업 요약

  • JWT 기반 관리자 로그인 API 구현
  • BCrypt 비밀번호 검증, Access/Refresh Token 발급
  • AdminRepository, AuthService, AuthController 추가

Closes #36

🛠️ 작업 내용 (Changes)

  • SPMS.Application/DTOs/Auth/LoginRequestDto.cs — 로그인 요청 DTO
  • SPMS.Application/DTOs/Auth/LoginResponseDto.cs — 로그인 응답 DTO
  • SPMS.Application/Interfaces/IAuthService.cs — 인증 서비스 인터페이스
  • SPMS.Application/Services/AuthService.cs — 로그인 비즈니스 로직
  • SPMS.Infrastructure/Persistence/Repositories/AdminRepository.cs — IAdminRepository 구현
  • SPMS.API/Controllers/AuthController.cs — 인증 컨트롤러
  • DI 등록 (IAuthService, IAdminRepository)

📢 리뷰어 참고 사항 (To Reviewers)

  • Refresh Token Redis 저장은 추후 구현 예정

체크리스트 (Self Checklist)

  • 빌드(Build)가 성공적으로 수행되었는가?
  • 모든 단위 테스트(Unit Test)를 통과하였는가?
  • 불필요한 로그나 주석을 제거하였는가?
  • 컨벤션(Clean Architecture, Naming)을 준수하였는가?
  • 기밀 정보(비밀번호, 키 등)가 하드코딩 되어있지 않은가?

📸 스크린샷 / 테스트 로그 (Screenshots/Logs)

  • Swagger UI 테스트 후 추가 예정
## 📋 작업 요약 - JWT 기반 관리자 로그인 API 구현 - BCrypt 비밀번호 검증, Access/Refresh Token 발급 - AdminRepository, AuthService, AuthController 추가 ## 🔗 관련 이슈 (Related Issues) Closes #36 ## 🛠️ 작업 내용 (Changes) - [x] `SPMS.Application/DTOs/Auth/LoginRequestDto.cs` — 로그인 요청 DTO - [x] `SPMS.Application/DTOs/Auth/LoginResponseDto.cs` — 로그인 응답 DTO - [x] `SPMS.Application/Interfaces/IAuthService.cs` — 인증 서비스 인터페이스 - [x] `SPMS.Application/Services/AuthService.cs` — 로그인 비즈니스 로직 - [x] `SPMS.Infrastructure/Persistence/Repositories/AdminRepository.cs` — IAdminRepository 구현 - [x] `SPMS.API/Controllers/AuthController.cs` — 인증 컨트롤러 - [x] DI 등록 (IAuthService, IAdminRepository) ## 📢 리뷰어 참고 사항 (To Reviewers) - Refresh Token Redis 저장은 추후 구현 예정 ## ✅ 체크리스트 (Self Checklist) - [x] 빌드(Build)가 성공적으로 수행되었는가? - [ ] 모든 단위 테스트(Unit Test)를 통과하였는가? - [x] 불필요한 로그나 주석을 제거하였는가? - [x] 컨벤션(Clean Architecture, Naming)을 준수하였는가? - [x] 기밀 정보(비밀번호, 키 등)가 하드코딩 되어있지 않은가? ## 📸 스크린샷 / 테스트 로그 (Screenshots/Logs) - Swagger UI 테스트 후 추가 예정
seonkyu.kim added 1 commit 2026-02-09 13:16:40 +00:00
- LoginRequestDto, LoginResponseDto 추가
- IAuthService, AuthService 구현 (BCrypt 비밀번호 검증)
- AdminRepository 구현 (GetByEmailAsync)
- AuthController 추가 (POST /v1/in/auth/login)
- DI 등록 (IAuthService, IAdminRepository)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
seonkyu.kim added this to the Phase 2-1: 인증 & 계정 & 서비스 API milestone 2026-02-09 13:16:56 +00:00
seonkyu.kim added the
Priority
High
Status
In Progress
Type
Feature
labels 2026-02-09 13:16:58 +00:00
seonkyu.kim requested review from Owners 2026-02-09 13:21:11 +00:00
seonkyu.kim self-assigned this 2026-02-09 13:22:05 +00:00
seonkyu.kim merged commit f037977102 into develop 2026-02-09 13:53:45 +00:00
seonkyu.kim deleted branch feature/#36-admin-login 2026-02-09 13:54:03 +00:00
seonkyu.kim added
Status
Done
and removed
Status
In Progress
labels 2026-02-09 13:56:17 +00:00
Sign in to join this conversation.
No description provided.