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 : OAuth2.0 카카오 로그인 & JWT 인증 구현 #18

Merged
merged 23 commits into from
Jan 1, 2024

Conversation

kkangh00n
Copy link
Collaborator

closed #8

⛏ 작업 상세 내용

  • 기능 구현을 위한 Member 필드 수정 (email, role)
  • OAuth로그인 완료 후, AcessToken과 RefreshToken을 Json으로 응답
  • RefreshToken 서버 저장을 위해 별도의 테이블 생성
  • 설정 파일(yaml) 변경 참고

📝 작업 요약

  • OAuth2.0 카카오 로그인
  • JWT 인증 구현

☑️ 중점적으로 리뷰 할 부분

  • 패키지 구조
  • 네이밍
  • 인증 방식 등
  • 테스트는 별도의 issue로 생성 예정

Copy link

github-actions bot commented Dec 27, 2023

Test Results

0 tests  ±0   0 ✅ ±0   0s ⏱️ ±0s
0 suites ±0   0 💤 ±0 
0 files   ±0   0 ❌ ±0 

Results for commit f7799fe. ± Comparison against base commit 4202c8c.

♻️ This comment has been updated with latest results.

Comment on lines +58 to +66
public Member(String name, String email, String phoneNumber, Gender gender,
LocalDate dateBirth) {
this.name = name;
this.email = email;
this.phoneNumber = phoneNumber;
this.gender = gender;
this.dateBirth = dateBirth;
this.notification_activated = notification_activated;
this.notification_activated = true;
this.role = Role.MEMBER;
Copy link
Member

Choose a reason for hiding this comment

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

저희 회원 생성시에 알림 활성화는 항상 true로 생성되나요??

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

기존 회원가입 시, 알림 활성화가 될거라 혼자 판단했는데 한번 스크럼 때 말해보는게 좋겠군요..!!

SessionCreationPolicy.STATELESS))
.formLogin(AbstractHttpConfigurer::disable)
.authorizeHttpRequests(authorization -> authorization
.requestMatchers(new AntPathRequestMatcher("/**")).permitAll()
Copy link
Member

Choose a reason for hiding this comment

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

이 부분 나중에 url 여러개 넣을 때 위에 문자열 배열로 빼서 거기에다 url 정의해놓아도 좋을 것 같습니다!

Comment on lines +52 to +53
} else {
throw new UsernameNotFoundException("Please Login again");
Copy link
Member

Choose a reason for hiding this comment

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

Security 필터내에서 예외를 던지면 이 예외가 인식이 되나요??

Copy link
Collaborator Author

@kkangh00n kkangh00n Jan 1, 2024

Choose a reason for hiding this comment

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

예외 필터를 따로 구현 후, 앞단에 두어 처리해야합니다..!! 추가 후 리뷰요청 날리겠습니다~!

@dlswns2480
Copy link
Member

리뷰 달았습니다! 로그인 실패 처리랑 테스트 코드만 추가되면 될 것 같습니다.

Copy link
Member

@hyun2371 hyun2371 left a comment

Choose a reason for hiding this comment

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

인증 로직 구현하느라 수고 많으셨습니다~!

@kkangh00n kkangh00n merged commit 0df8181 into dev Jan 1, 2024
2 of 3 checks passed
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.

3 participants