feat: Gmail OAuth - Connect with Google for individual org accounts#337
Open
benzntech wants to merge 7 commits into
Open
feat: Gmail OAuth - Connect with Google for individual org accounts#337benzntech wants to merge 7 commits into
benzntech wants to merge 7 commits into
Conversation
|
All contributors have signed the CLA ✍️ ✅ |
Author
|
I have read the CLA Document and I hereby sign the CLA |
Author
|
recheck |
Consolidate GOOGLE_OAUTH_* env vars into googleOAuth config object for consistent access and easier future validation. Updates oauth.controller.ts and GoogleOAuthConnector.ts to use centralized config instead of direct process.env access.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
google_oauthas a new ingestion provider type for individual Gmail organizational accountsGoogleOAuthCredentialstype (email,accessToken,refreshToken) alongside the existinggoogle_workspaceservice-account provider — no breaking changesrapidspec/changes/gmail-oauth-connect/Problem
Connecting a Gmail account currently requires pasting a raw Google Service Account JSON blob + an admin email — a highly technical process that breaks the UX expectations of modern users.
Solution
A new
google_oauthprovider that lets individual users click "Connect with Google", complete a standard OAuth consent flow, and have their mailbox added automatically. No manual credential fields.OAuth Flow
What's in this PR
packages/types/src/ingestion.types.ts—GoogleOAuthCredentialsinterface +google_oauthin provider unionrapidspec/changes/gmail-oauth-connect/— full proposal spec (implementation continues in follow-up PRs)Test plan
pnpm buildpasses with updated typesrapidspec/changes/gmail-oauth-connect/tasks.md