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: OAtuh / Security Logic 코드리뷰 반영 #8

Merged
merged 3 commits into from
Mar 18, 2024
Merged

Conversation

h-beeen
Copy link
Member

@h-beeen h-beeen commented Mar 17, 2024

PULL REQUEST

🎋 Issue Ticket

🔑 주요 작업사항

🏞 (Optional) 참고 자료

(중요) 서브모듈이 수정되었나요?

  • 기존 커밋 :
  • 변경 커밋 :
  • 변경 사항 :
  • [] 해당 서브모듈 변경사항이 PR에 잘 반영되었나요?

꼭 확인해 주세요!!

  • 본 PR에서 JWT 기반 로그인까지 완료한 이후 feat/#1-1 -> feat/#1 -> develop 순으로 머지 예정입니다.

Comment on lines 51 to 52
return memberRepository.findByProviderIdAndProviderType(kakaoProviderId, providerType)
?: memberRepository.save(Member(kakaoProviderId, providerType, Role.ROLE_TEMP_USER))
Copy link
Member Author

Choose a reason for hiding this comment

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

어때요? 조금 직관적으로 변했을까요?

@@ -1,5 +1,5 @@
package com.vacgom.backend.application.auth.dto

data class KakaoMemberResponse(
data class ResourceIdResponse(
Copy link
Member Author

Choose a reason for hiding this comment

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

이 부분은 나중에 인터페이스로 추상화해도 좋을 것 같아요.
다만 아직 공통 프로퍼티에 대한 정보가 없어 추상화까지는 필요 없다고 생각했어요.

@h-beeen h-beeen self-assigned this Mar 17, 2024
@h-beeen h-beeen added the ✨ Feat 새로운 기능을 추가하는 경우 label Mar 17, 2024
@h-beeen h-beeen added this to the [Global] Security Logic milestone Mar 17, 2024
@h-beeen h-beeen linked an issue Mar 17, 2024 that may be closed by this pull request
Comment on lines +15 to +18
fun securityTest(@AuthId id: UUID): ResponseEntity<String> {
println("UUID/ id = ${id}")
return ResponseEntity.ok("success!!")
}
Copy link
Member Author

@h-beeen h-beeen Mar 18, 2024

Choose a reason for hiding this comment

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

User ID 이런식으로 활용하시면 됩니다.

@h-beeen h-beeen changed the title feat: OAtuh / Security Logic 코드리뷰 반영 (JWT 개발중) feat: OAtuh / Security Logic 코드리뷰 반영 Mar 18, 2024
@h-beeen h-beeen merged commit dd3e100 into feat/#1 Mar 18, 2024
@h-beeen h-beeen deleted the feat/#1-1 branch March 18, 2024 11:12
@h-beeen
Copy link
Member Author

h-beeen commented Mar 18, 2024

선머지 후리뷰 예정

h-beeen added a commit that referenced this pull request Mar 18, 2024
* feat: Member Entity 필요 속성 추가

* feat: Configuration 계층 수정

* feat: Init Kakao Oauth / Redirect API

* feat: OAuth2 Provider 기준 분기 후 로그인 API로 Redirect

* feat: JWT 기본 로직 / ProviderId 기반 회원가입/로그인 로직

* chore: 패키지 구조 개선

* feat: JWT 연동 완료 및 구조 개선

* feat: OAtuh / Security Logic 코드리뷰 반영 (#8)

* feat: JWT 연동 완료 및 구조 개선

* feat: OAuth2 구현 완료

* feat: 코틀린스러운 문법 수정
@h-beeen h-beeen restored the feat/#1-1 branch March 21, 2024 16:47
@h-beeen h-beeen deleted the feat/#1-1 branch March 21, 2024 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ Feat 새로운 기능을 추가하는 경우
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: Spring Security & Oauth2 구현
1 participant