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

Spring Security를 활용한 로그인 기능 구현 #24

Merged
merged 45 commits into from
Nov 22, 2024
Merged

Conversation

holyPigeon
Copy link
Contributor

@holyPigeon holyPigeon commented Nov 22, 2024

#️⃣ 연관된 이슈

#18

📝 작업 내용

  • Spring Security 및 JWT를 활용한 로그인 기능 구현 (리프레시 토큰 발급 부분은 이후 추가 구현 예정)
  • 에러코드를 ErrorCode Enum으로 구현
  • 현재 로그인한 사용자 정보 조회 기능 구혀
    • API 요청 시 헤더에 엑세스 토큰을 넣어서 요청해야 함
    • 포스트맨 사용 시 스크린샷과 같이 설정 가능 (key는 Authorization, value는 eyJhbGciOiJIU...)
  • 개발 편의를 위해 DB 세팅 내용을 담은 docker-compose 파일 작성 및 관련 application.yml 내용 수정

📷 스크린샷 (선택)

  • 로그인 성공
    스크린샷 2024-11-22 오후 9 42 23

  • 로그인한 회원 조회 시 헤더 엑세스 토큰 첨부
    스크린샷 2024-11-22 오후 9 40 46

💬 리뷰 요구사항 (선택)

만들다보니까 PR 규모가 많이 커졌네요... 리뷰는 좀 힘들 것 같고 문제 생기면 나중에 혼자서 잘 고쳐보겠습니다ㅠ

스프링 시큐리티에서 관리하는 회원 클래스 구현
@holyPigeon holyPigeon added ✨ Feature 기능 개발 🐋 Docker 도커 관련 labels Nov 22, 2024
@holyPigeon holyPigeon self-assigned this Nov 22, 2024
@holyPigeon holyPigeon linked an issue Nov 22, 2024 that may be closed by this pull request
2 tasks
Copy link

Test Coverage Report

Overall Project 15.44% -80.55% 🍏
Files changed 11.5% 🍏

File Coverage
SecurityConfig.java 73.83% 🍏
MemberType.java 61.54% -38.46% 🍏
CustomEntryPoint.java 19.44% -80.56% 🍏
JwtUtil.java 17.17% -82.83% 🍏
LoginFilter.java 7.23% -92.77% 🍏
ApiResponse.java 0% -68.75% 🍏
CustomLogoutFilter.java 0% 🍏
JwtFilter.java 0% 🍏
CustomMemberDetails.java 0% 🍏
RefreshToken.java 0% 🍏
MemberController.java 0% 🍏
CustomMemberDetailsService.java 0% 🍏
ErrorCode.java 0% 🍏
MemberInfoResponse.java 0% 🍏
JoinRequest.java 0% 🍏
MemberService.java 0% 🍏

@holyPigeon holyPigeon merged commit 4a5910f into develop Nov 22, 2024
1 check passed
@holyPigeon holyPigeon deleted the feat/#18 branch November 22, 2024 17:13
@Muokok
Copy link
Member

Muokok commented Nov 24, 2024

image

위 밑줄 친 부분에서 NullPointerException이 터지는데, 확인 부탁드려요

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐋 Docker 도커 관련 ✨ Feature 기능 개발
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Spring Security를 활용한 로그인 기능 구현
2 participants