Skip to content
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

Redis를 이용한 엑세스 토큰 재발급 기능 구현 #30

Merged
merged 11 commits into from
Nov 23, 2024

Conversation

holyPigeon
Copy link
Contributor

#️⃣ 연관된 이슈

#27

📝 작업 내용

  • 엑세스 토큰 재발급 기능 구현
  • 리프레시 토큰 레디스 저장 기능 구현

전체적인 엑세스 토큰 재발급 흐름

  1. 클라이언트 요청에서 기한이 만료된 엑세스 토큰이 발견되었을 때, EXPIRED_AUTH_TOKEN 예외를 반환합니다.
  2. EXPIRED_AUTH_TOKEN 예외를 전달받은 클라이언트는 /api/reissue 경로로 엑세스 토큰 재발급을 요청합니다. 이 때, 쿠키에 리프레시 토큰을 같이 담아 요청합니다.
  3. 서버에서 리프레시 토큰이 유효한지 확인한 후, 엑세스 토큰을 재발급하여 클라이언트에게 전달합니다.
  4. 만약 리프레시 토큰 역시 만료되었다면, 서버에서 EXPIRED_REFRESH_TOKEN 예외를 반환합니다. 해당 예외를 받은 클라이언트는 사용자가 다시 로그인할 수 있도록 안내합니다.

📷 스크린샷 (선택)

💬 리뷰 요구사항 (선택)

@holyPigeon holyPigeon added the ✨ Feature 기능 개발 label Nov 23, 2024
@holyPigeon holyPigeon self-assigned this Nov 23, 2024
@holyPigeon holyPigeon linked an issue Nov 23, 2024 that may be closed by this pull request
1 task
Copy link

Test Coverage Report

Overall Project 13.74% -16.67% 🍏
Files changed 15.45% 🍏

File Coverage
RedisConfig.java 100% 🍏
SecurityConfig.java 73.83% 🍏
CustomEntryPoint.java 19.44% 🍏
JwtUtil.java 17.17% 🍏
LoginFilter.java 7.23% -16.87% 🍏
CustomLogoutFilter.java 0% -28.19% 🍏
JwtFilter.java 0% -19.01% 🍏
ReissueService.java 0% 🍏
CustomMemberDetailsService.java 0% 🍏
MyPageService.java 0% 🍏
ReissueController.java 0% 🍏

@holyPigeon holyPigeon merged commit f7be110 into develop Nov 23, 2024
1 check passed
@holyPigeon holyPigeon deleted the feat/#27 branch November 23, 2024 10:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ Feature 기능 개발
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Redis를 이용한 엑세스 토큰 재발급 기능 구현
1 participant