Skip to content

Conversation

@soun997
Copy link
Contributor

@soun997 soun997 commented Sep 16, 2025

이슈 번호 (#331 )

요약

JWT Token 검증 API 엔드포인트 추가

  • JWT Token 검증을 위한 api 엔드포인트 추가
  • Token 검증은 Filter 단에서 진행, Controller 레이어까지 요청이 넘어왔다는 것은 검증 성공을 의미, 401 응답 내려줌

(Local 환경) Neo4j DB 데이터 Initializer

  • Local에서 Spring Boot를 재시작하는 경우, 환경설정에 의해 RDB 데이터는 초기화됨
  • 그러나 Neo4j DB의 데이터는 초기화되지 않음 -> RDB 데이터와 불일치하는 문제 발생
  • Spring Boot 재시작 시, Neo4j DB 데이터도 초기화되도록 LocalNeo4jInitializer 구현 (Local 환경 한정으로 동작)

@soun997 soun997 requested a review from Copilot September 16, 2025 17:39
@soun997 soun997 self-assigned this Sep 16, 2025
@soun997 soun997 added the feature 기능 관련 이슈 label Sep 16, 2025
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

JWT 토큰 검증을 위한 API 엔드포인트 추가. 토큰 검증은 필터에서 처리되므로 컨트롤러에 도달하면 검증 성공을 의미하여 204 응답을 반환.

  • JWT 토큰 검증 엔드포인트 /auth/validate 추가
  • 로컬 환경에서 Neo4j 데이터베이스 초기화 기능 추가

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/main/java/com/sillim/recordit/member/controller/LoginController.java JWT 토큰 검증을 위한 GET 엔드포인트 추가
src/main/java/com/sillim/recordit/config/neo4j/LocalNeo4jInitializer.java 로컬 프로파일에서 Neo4j 데이터 초기화 컴포넌트 추가

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@soun997 soun997 changed the title [Feature] jwt token 검증 api 엔드포인트 추가 [Feature] JWT Token 검증 API 엔드포인트 추가 Sep 16, 2025
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@soun997 soun997 linked an issue Sep 16, 2025 that may be closed by this pull request
1 task
- 라벨까지 삭제되도록 DB를 재생성
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@soun997 soun997 merged commit d657312 into develop Sep 17, 2025
3 checks passed
@soun997 soun997 deleted the feature-331 branch September 17, 2025 09:53
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.

[Feature] JWT 토큰 유효성 검증 API 구현

2 participants