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] Spring Security + JWT Cookie 일반 로그인 구현 #18

Closed
wants to merge 1 commit into from

Conversation

ss0ngcode
Copy link
Collaborator

@ss0ngcode ss0ngcode commented Sep 30, 2024

What is this PR? 🔍

Changes 📝

  • Spring Security 설정
  • JWT Token(Access, Refresh) 발급 구현
    • JWT Token은 Cookie에 담아 전달
  • JWT Filter 설정
    • Security에서 permitAll() 인 경로에 대해서는 필터를 바로 통과합니다.
    • 그렇지 않은 경우 Access Token을 검증합니다.
    • Access Token이 만료되거나 올바르지 않은 경우 Refresh Token을 검증합니다.
    • Refresh Token의 검증이 완료된 경우 Access Token과 Refresh Token을 모두 재발급 합니다.

Precaution

  • Swagger 관련해서 JWT 토큰 검증 에러가 발생하는 상황입니다. 해당 PR 이후 수정하도록 하겠습니다.
  • 나눠서 commit하고 PR 해야하는데 그러지 못한 점 죄송합니다... ㅠ

✔️ Please check if the PR fulfills these requirements

  • It's submitted to the correct branch, not the develop branch unconditionally?
  • If on a hotfix branch, ensure it targets main?
  • There are no warning message when you run yarn lint

@ss0ngcode ss0ngcode self-assigned this Sep 30, 2024
@ss0ngcode ss0ngcode closed this Sep 30, 2024
@ss0ngcode ss0ngcode reopened this Sep 30, 2024
@ss0ngcode ss0ngcode closed this Sep 30, 2024
@ss0ngcode ss0ngcode deleted the feat/#8 branch September 30, 2024 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant