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 인증 프로세스를 구현한다. #41

Merged
merged 19 commits into from
Nov 1, 2023

Conversation

hseong3243
Copy link
Collaborator

⛏ 작업 사항

  • 미리 구현해놓은 jwt 인증 로직을 프로젝트에 적용하였습니다.
  • 저희 프로젝트에 맞게 해당 사항을 커스텀하였습니다.
  • 로그인한 사용자의 id 값이 필요한 경우 컨트롤러 메서드의 파라미터에 @LoginUser 어노테이션을 사용해주시면 됩니다. LoginArgumentResolverSecurityContext로부터 인증 객체를 꺼내고, 인증 객체에 들어있는 로그인한 사용자 id 값을 가져옵니다.
  • 리프레시 토큰을 이용한 액세스 토큰 갱신 로직은 존재하나 리프레시 토큰 전송 방법에 쿠키를 사용할지 다른 방법을 사용할지 보류 중이라 추후 적용 예정입니다.

📝 작업 요약

  • JWT 인증 로직 템플릿 적용� 및 커스텀

💡 관련 이슈

Copy link

github-actions bot commented Oct 31, 2023

Test Results

71 tests  +25   71 ✔️ +25   4s ⏱️ -1s
40 suites +12     0 💤 ±  0 
40 files   +12     0 ±  0 

Results for commit 835f1a0. ± Comparison against base commit 87df81b.

♻️ This comment has been updated with latest results.

Copy link

sonarcloud bot commented Nov 1, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

78.1% 78.1% Coverage
0.0% 0.0% Duplication

Copy link
Member

@pushedrumex pushedrumex left a comment

Choose a reason for hiding this comment

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

고생하셨습니당

@hseong3243 hseong3243 merged commit 90529f3 into dev Nov 1, 2023
6 checks passed
@hseong3243 hseong3243 deleted the feat/#8 branch November 1, 2023 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

feat: 사용자 인증을 위한 jwt 인증 프로세스를 구현한다.
4 participants