-
Notifications
You must be signed in to change notification settings - Fork 8
refactor: OAuth 클래스에 전략 패턴 적용 #432
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
refactor: OAuth 클래스에 전략 패턴 적용 #432
Conversation
Walkthrough
Estimated code review effort🎯 4 (Complex) | ⏱️ ~35 minutes
Suggested reviewers
Note 🔌 MCP (Model Context Protocol) integration is now available in Early Access!Pro users can now connect to remote MCP servers under the Integrations page to get reviews and chat conversations that understand additional development context. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (5)
💤 Files with no reviewable changes (2)
🚧 Files skipped from review as they are similar to previous changes (3)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
36fb4d8 to
8c1713d
Compare
| protected OAuthService(OAuthSignUpTokenProvider OAuthSignUpTokenProvider, SiteUserRepository siteUserRepository, SignInService signInService) { | ||
| this.OAuthSignUpTokenProvider = OAuthSignUpTokenProvider; | ||
| this.siteUserRepository = siteUserRepository; | ||
| this.signInService = signInService; | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
자식이 부모의 의존성을 주입하는 코드가 없어졌습니다🎉
whqtker
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
전략 패턴을 실제로 구현하는 코드는 처음 봤는데, 잘 구현된 것 같습니다 ~ 사진과 함께 봐서 이해가 더 잘 되었습니다 ~!
Gyuhyeok99
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생하셨습니다!!
관련 이슈
작업 내용
OAuth 서비스들에 전략 패턴을 적용했습니다.
"전략 패턴" 학습에 도움되시라고 자료 첨부합니다 🔽
https://refactoring.guru/ko/design-patterns/strategy
최종적으로, auth 패키지 개정안에서 말씀드린 것처럼 아래의 형태를 띄게 되었습니다!

https://blushing-skiff-598.notion.site/auth-23b4947284a480ba9ca4e8a27b9295b7?pvs=74
특이 사항
리뷰 요구사항 (선택)