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

FEATURE/14 JWT 로그인 기능 구현 #37

Open
wants to merge 7 commits into
base: develop
Choose a base branch
from

Conversation

jieun5119
Copy link
Collaborator

resolved : #14

📌 과제 설명

JWT 기반 로그인 기능을 구현하였고, 리프레시 토큰을 통한 토큰 재발급과 스케줄링 기능도 추가하였습니다.

👩‍💻 요구 사항과 구현 내용

  • jwt의존성 추가 및 security 설정
  • 로그인 필터 구현 및 등록
  • jwt 필터 등록
  • 리프레시 토큰 발급
  • 리프레시 토큰 스케줄링 기능

✅ 피드백 반영사항

✅ PR 포인트 & 궁금한 점

  • JWT 기반 로그인과 리프레시 토큰 관리 부분에서 추가적인 피드백이 있는지 궁금합니다.
  • 레디스 대신 저는 RDB에 저장하고 토큰이 쌓이면 삭제 해주기 위해 스케줄링을 구현했는데 이 부분도 어떻게 생각하시는지 궁금합니다.

- 로그인 요청 및 검증 기본 구현

- 로그인 필터 등록
- JWT 필터에서 access 토큰 만료 및 카테고리 검증 로직 추가

- 로그인 성공 시 access, refresh 토큰 생성 및 refresh 토큰 쿠키 저장

- 인증 실패 시 예외 처리 로직 수정
- 리프레시 토큰 테이블 엔티티 및 레포지토리 구성

- 토큰 재발급 서비스 로직 추가: 기존 리프레시 토큰 삭제 후 새로운 토큰 발급 및 쿠키 저장

- 만료된 리프레시 토큰 처리 및 예외 처리 로직 추가
- 리프레시 토큰 , UserDetails 관련 DTO를 추가
- 자정마다 만료된 리프레시 토큰을 삭제하는 스케줄러 추가

- RefreshRepository에 만료된 토큰 삭제 메서드 추가
@jieun5119 jieun5119 linked an issue Oct 3, 2024 that may be closed by this pull request
6 tasks
@jieun5119 jieun5119 changed the title 14 add user login [FEATURE] JWT 로그인 기능 구현 Oct 3, 2024
@jieun5119 jieun5119 changed the title [FEATURE] JWT 로그인 기능 구현 FEATURE/14 JWT 로그인 기능 구현 Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] JWT 로그인 기능 구현
1 participant