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

Feat: jwt token 발급, 검증 필터 추가 #23

Merged
merged 7 commits into from
Jul 26, 2024

Conversation

WonSteps
Copy link
Member

@WonSteps WonSteps commented Jul 25, 2024

🔗 이슈 연결

🚀 구현한 API

  • X

💡 반영할 내용 및 변경 사항 요약

  • jwt token 관련 의존성을 추가합니다. io.jsonwebtoken
  • AuthenticationCheckFilter에서 header를 확인하고, 토큰 정보를 바탕으로 인증 정보를 컨텍스트에 저장합니다.
  • TokenProviderModule에서, access token과 나중에 추가할 refresh token들을 발급하는 객체를 관리하도록 합니다.

🔍 리뷰 요청/참고 사항

  • env에 ACCESS_TOKEN_EXPIRATION, ACCESS_TOKEN_SECRET_KEY 2개를 추가합니다.
  • 나중에 refresh token을 추가할 때 기존 코드는 수정없이 추가할 수 있도록 구현했는데,
    그래서 지금 PR에서는 TokenProviderModule가 이상할 수도 있습니다.
  • 보시고 이상한 점이나 이해가 안되는 점 말씀해주세요!

@WonSteps WonSteps added feature 기능 추가 chore labels Jul 25, 2024
@WonSteps WonSteps requested a review from hee9841 July 25, 2024 05:30
@WonSteps WonSteps self-assigned this Jul 25, 2024
Copy link
Collaborator

@hee9841 hee9841 left a comment

Choose a reason for hiding this comment

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

👍

@WonSteps WonSteps merged commit f1e85ca into main Jul 26, 2024
1 check passed
@WonSteps WonSteps deleted the feature/#10/security-token branch July 26, 2024 06:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore feature 기능 추가
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Springboot security 적용
2 participants