← Back to Connections
OAuth setup guide
One-time per provider: register Clove in their developer portal, paste keys into website/.env, restart npm run dev. Each customer still clicks Connect and logs in — tokens go to Supabase, data syncs automatically for KB connectors.
Before connecting
- Run SQL in Supabase: oauth_connections.sql, connector_data.sql, connector_documents.sql
- Check readiness: /api/connectors/ready
- Restart dev server after editing .env
Providers (do in order)
1
Slack
auto KB sync.env: SLACK_CLIENT_ID, SLACK_CLIENT_SECRET · Open developer portal →
- Create app → From scratch
- OAuth redirect: http://localhost:3000/api/connect/slack/callback
- Bot scopes: channels:history, channels:read, groups:read, users:read
- Install app to workspace
- Copy Client ID + Client Secret to website/.env
- Connect in Clove → invite bot to channels → Sync KB
2
Notion
auto KB sync.env: NOTION_CLIENT_ID, NOTION_CLIENT_SECRET · Open developer portal →
- New integration → Public (OAuth enabled)
- Redirect: http://localhost:3000/api/connect/notion/callback
- Copy OAuth client ID + secret to .env
- In Notion: share pages with the Clove integration
- Connect in Clove
3
GitHub
auto KB sync.env: GITHUB_CLIENT_ID, GITHUB_CLIENT_SECRET · Open developer portal →
- OAuth Apps → New OAuth App
- Callback: http://localhost:3000/api/connect/github/callback
- Copy Client ID + Client Secret to .env
- Connect in Clove → issues/PRs sync to connector_documents
4
Google (Gmail + Drive)
auto KB sync.env: GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET · Open developer portal →
- Enable Gmail API + Google Drive API
- OAuth consent screen → add test users
- Create OAuth Web client
- Redirects: http://localhost:3000/api/connect/gmail/callback and .../google-drive/callback
- Connect Gmail and Google Drive separately in Clove
5
Microsoft (Teams / Outlook)
.env: MICROSOFT_CLIENT_ID, MICROSOFT_CLIENT_SECRET · Open developer portal →
- App registrations → New → Web redirect URIs per product
- Create client secret
- Add Graph API permissions
- Copy Application ID + secret to .env
Full doc with Atlassian, Linear, production URLs: website/docs/CONNECTOR_OAUTH_SETUP.md