improvement: 로그아웃 시 Access Token 즉시 무효화 (#169) #201
No reviewers
SPMS/Owners
Labels
No Label
Priority
High
Priority
Low
Priority
Medium
Priority
Non
Priority
Urgent
Status
Available
Status
Done
Status
In Progress
Type
Bug
Type
Chore
Type
Design
Type
Documentation
Type
Feature
Type
Improvement
Type
Refactor
Type
Research
Type
Task
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: SPMS/SPMS_API#201
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "improvement/#169-logout-token-blacklist"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 작업 요약
🔗 관련 이슈 (Related Issues)
Closes #169
🛠️ 작업 내용 (Changes)
SPMS.Application/Interfaces/IJwtService.cs— GetTokenInfo 메서드 추가SPMS.Infrastructure/Auth/JwtService.cs— GetTokenInfo 구현 (JTI, ValidTo 추출)SPMS.Application/Interfaces/IAuthService.cs— LogoutAsync 시그니처 변경 (accessToken 파라미터 추가)SPMS.Application/Services/AuthService.cs— 블랙리스트 로직 추가 (blacklist:{jti}, TTL=남은 만료시간)SPMS.API/Controllers/AuthController.cs— Authorization 헤더에서 Access Token 추출, Swagger 설명 업데이트SPMS.API/Extensions/AuthenticationExtensions.cs— OnTokenValidated에서 블랙리스트 체크📢 리뷰어 참고 사항 (To Reviewers)
✅ 체크리스트 (Self Checklist)
📸 스크린샷 / 테스트 로그 (Screenshots/Logs)
- IJwtService/JwtService에 GetTokenInfo(JTI, 만료시간 추출) 추가 - LogoutAsync에 Redis 블랙리스트 로직 추가 (key: blacklist:{jti}, TTL: 남은 만료시간) - AuthenticationExtensions OnTokenValidated에서 블랙리스트 체크 - 로그아웃 후 동일 Access Token 재사용 시 401 반환 Closes #169