OAuth Configuration for Self-Hosters
Overview
Section titled “Overview”OAuth integrations require platform-level credentials that you (the admin) configure once in your deployment. After that, all users can connect their accounts with a single click.
Without OAuth configured: Integration shows “Coming Soon” (disabled)
With OAuth configured: Users click “Connect” → OAuth flow → Done!
Quick Start
Section titled “Quick Start”For each OAuth integration you want to enable:
- Create OAuth app with the provider
- Copy Client ID and Client Secret
- Go to
/admin/integrationsin your deployment - Find the integration → Click “Configure”
- Paste credentials → Save
That’s it! Users can now connect.
Provider Setup Guides
Section titled “Provider Setup Guides”GitHub
Section titled “GitHub”-
Create OAuth App
- Go to GitHub Developer Settings
- Click New OAuth App
- Fill in:
- Application name: Your app name (e.g., “Varman at Acme Corp”)
- Homepage URL:
https://yourapp.com - Authorization callback URL:
https://yourapp.com/v1/integrations/oauth/callback
- Click Register application
- Copy the Client ID
- Click Generate a new client secret → Copy it
-
Add to Platform
- Go to
/admin/integrationsin your deployment - Find GitHub in the list
- Click Configure OAuth
- Paste Client ID and Client Secret
- Click Save
- Go to
-
Test
- Go to
/integrations - Find GitHub
- Click Connect (should no longer say “Coming Soon”)
- Authorize with your GitHub account
- Connection successful!
- Go to
Important: The callback URL must exactly match what you enter in your deployment.
Google (Workspace & Cloud Platform)
Section titled “Google (Workspace & Cloud Platform)”-
Create Google Cloud Project
- Go to Google Cloud Console
- Create a new project (or select existing)
- Name it something like “Varman OAuth”
-
Configure OAuth Consent Screen
- Go to APIs & Services → OAuth consent screen
- Select Internal (if using Google Workspace) or External
- Fill in:
- App name: Your app name
- User support email: Your email
- Developer contact: Your email
- Don’t add scopes manually - we request them dynamically
- Save and continue
-
Create OAuth Credentials
- Go to APIs & Services → Credentials
- Click Create Credentials → OAuth client ID
- Select Web application
- Name: “Varman Web”
- Authorized redirect URIs:
https://yourapp.com/v1/integrations/oauth/callback - Click Create
- Copy Client ID and Client Secret
-
Enable Required APIs
In the same GCP project, enable these APIs:
- Admin SDK API (for Google Workspace)
- Cloud Resource Manager API (for GCP)
- Security Command Center API (for GCP)
Go to APIs & Services → Library and search for each.
-
Add to Platform (Google Workspace)
- Go to
/admin/integrations - Find Google Workspace
- Click Configure OAuth
- Paste Client ID and Client Secret
- Save
- Go to
-
Add to Platform (GCP) - Optional
- In the same admin page
- Find Google Cloud Platform
- Click Configure OAuth
- Paste the same Client ID and Client Secret
- Save
User Requirements:
- Google Workspace: User must be a Workspace admin
- GCP: User must have Viewer + Security Center Findings Viewer roles at org level
Linear
Section titled “Linear”-
Create OAuth App
- Go to Linear API Settings
- Click Create new OAuth application
- Fill in:
- Name: Your app name
- Callback URLs:
https://yourapp.com/v1/integrations/oauth/callback
- Click Create
- Copy Client ID and Client Secret
-
Add to Platform
- Go to
/admin/integrations - Find Linear → Configure OAuth
- Paste credentials → Save
- Go to
Vercel
Section titled “Vercel”-
Create Integration
- Go to Vercel Integrations Console
- Click Create Integration
- Fill in:
- Name: Your app name
- Redirect URL:
https://yourapp.com/v1/integrations/oauth/callback
- Create → Copy Client ID, Client Secret, and Integration Slug
-
Add to Platform
- Go to
/admin/integrations - Find Vercel → Configure OAuth
- Paste Client ID and Client Secret
- In Custom Settings, add the Integration Slug
- Save
- Go to
Note: Vercel requires an integration slug as a custom setting.
Rippling
Section titled “Rippling”-
Request Marketplace App
- Contact Rippling support or your account manager
- Request a marketplace integration
- Provide:
- App name
- Callback URL:
https://yourapp.com/v1/integrations/oauth/callback - App description
- Wait for approval (1-2 weeks)
-
Receive Credentials
Rippling will provide:
- Client ID
- Client Secret
- App Name (your marketplace app identifier)
-
Add to Platform
- Go to
/admin/integrations - Find Rippling → Configure OAuth
- Paste Client ID and Client Secret
- In Custom Settings, add the App Name provided by Rippling
- Save
- Go to
Non-OAuth Integrations
Section titled “Non-OAuth Integrations”These integrations don’t require platform-level OAuth setup:
AWS, Azure, GCP (Service Accounts)
Section titled “AWS, Azure, GCP (Service Accounts)”No platform configuration needed!
Users provide their own:
- AWS: IAM Role ARN, External ID
- Azure: Service Principal credentials
- GCP: OAuth (but users connect with their own Google account)
Troubleshooting
Section titled “Troubleshooting”Integration Shows “Coming Soon”
Section titled “Integration Shows “Coming Soon””Cause: OAuth credentials not configured
Fix: Go to /admin/integrations → Configure Client ID/Secret
OAuth Callback Error
Section titled “OAuth Callback Error”Cause: Callback URL mismatch
Fix: Ensure the URL in the OAuth app exactly matches your deployment:
- OAuth app:
https://yourapp.com/v1/integrations/oauth/callback - Your deployment URL:
https://yourapp.com
They must match!
“Invalid Client” Error
Section titled ““Invalid Client” Error”Cause: Wrong Client ID or Secret
Fix: Double-check you copied both correctly, no extra spaces
Users Can’t Authorize (Google)
Section titled “Users Can’t Authorize (Google)”Cause: APIs not enabled in your GCP project
Fix: Enable Admin SDK API (Workspace) or Cloud APIs (GCP)
“Access Denied” After Connecting
Section titled ““Access Denied” After Connecting”Cause: User lacks required permissions in their account
Fix: User needs to grant IAM roles in the provider (check integration docs for required roles)
Security Notes
Section titled “Security Notes”Where Credentials are Stored
Section titled “Where Credentials are Stored”OAuth Client IDs and Secrets are stored in the database, encrypted at rest using AES-256-GCM.
Not in environment variables - This allows:
- Multiple deployments with different credentials
- Easy credential rotation via UI
- Secure encryption
- Multi-tenancy support
Callback URL Security
Section titled “Callback URL Security”Always use HTTPS in production:
https://yourapp.com/v1/integrations/oauth/callbackhttp://yourapp.com/...(insecure, OAuth will reject)
For local development:
http://localhost:3000/v1/integrations/oauth/callbackhttp://127.0.0.1:3000/v1/integrations/oauth/callback
OAuth Scopes
Section titled “OAuth Scopes”We request the minimum scopes needed for each integration:
- GitHub:
repo,read:org,read:user - Google Workspace:
admin.directory.user.readonly, etc. - GCP:
cloud-platform(required for Security Command Center - no read-only alternative available)
User Data
Section titled “User Data”We never store user passwords. OAuth flow:
- User authorizes → Provider gives us an access token
- We store the token (encrypted)
- We use token to call APIs
- User can revoke access anytime in the provider’s settings
Production Considerations
Section titled “Production Considerations”Google OAuth Verification
Section titled “Google OAuth Verification”If using Google integrations (Workspace, GCP) in production with external users, you’ll need to submit your app for Google’s verification process.
Required for:
- External user consent screen
- Requesting sensitive scopes (like
cloud-platform)
Process:
- Complete OAuth consent screen configuration
- Submit for verification at https://support.google.com/code/contact/oauth_app_verification
- Provide privacy policy, terms of service
- May take 2-6 weeks
For internal use: No verification needed if using “Internal” consent screen.
Rate Limiting
Section titled “Rate Limiting”OAuth providers have rate limits. The integration platform handles this by:
- Caching API responses where appropriate
- Running checks via background jobs (Trigger.dev)
- Implementing exponential backoff on retries
Token Refresh
Section titled “Token Refresh”OAuth tokens expire. The platform automatically:
- Stores refresh tokens (when provider supports it)
- Refreshes access tokens before they expire
- Re-prompts user to reconnect if refresh fails
No manual intervention needed!
Summary
Section titled “Summary”Time investment: ~30 minutes to configure all OAuth providers
Benefit: Users connect with 1 click instead of hunting for API keys
Maintenance: Minimal - credentials rotate via UI, no code deployments needed
Security: All credentials encrypted at rest, HTTPS required for callbacks
Configure once, benefit forever!