chore: Move Github OAuth to CustomOAuth#37604
Conversation
|
Looks like this PR is not ready to merge, because of the following issues:
Please fix the issues and try again If you have any trouble, please check the PR guidelines |
|
WalkthroughThis PR migrates GitHub OAuth from the built-in Meteor Changes
Sequence Diagram(s)sequenceDiagram
participant Client as Client App
participant Hook as useGithubOAuth Hook
participant CustomOAuth as CustomOAuth Service
participant Server as Server (lib.ts)
participant GithubAPI as GitHub API
Client->>Hook: AppLayout renders
Hook->>Hook: Read Accounts_OAuth_Github flag
alt Feature Enabled
Hook->>CustomOAuth: configureOAuthService('github', config)
CustomOAuth->>CustomOAuth: Configure with serverURL, endpoints, scopes
CustomOAuth->>Server: Request OAuth configuration
Server->>Server: Load Github config instance
Server-->>CustomOAuth: Return config
end
Note over Client,Server: When user initiates GitHub login
Client->>CustomOAuth: requestCredential()
CustomOAuth->>GithubAPI: Launch OAuth flow with redirect
GithubAPI-->>Client: User approves, returns code
Client->>Server: Exchange code for token
Server->>GithubAPI: POST token endpoint
GithubAPI-->>Server: Return access token
Server-->>Client: OAuth complete
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
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. Comment |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## develop #37604 +/- ##
===========================================
+ Coverage 70.73% 70.75% +0.01%
===========================================
Files 3142 3142
Lines 108927 108922 -5
Branches 19606 19630 +24
===========================================
+ Hits 77052 77065 +13
+ Misses 29864 29855 -9
+ Partials 2011 2002 -9
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
Proposed changes (including videos or screenshots)
Refactor Github OAuth away from Meteor packages to use custom OAuth implementation.
Issue(s)
Steps to test or reproduce
Further comments
PRES-2
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.