Managed OAuth apps
One-click OAuth for every organization on your server: the variables, the shared redirect URI, families, provider-by-provider setup and the apps that are never managed.
A managed OAuth app is an OAuth app that whoever runs the platform registers once with a provider, such as Google or HubSpot. With it in place, every organization on the server connects that provider's apps with one click: no OAuth app of their own, no client ID or secret to paste. This page is for operators. It explains the variables, the shared redirect URI, and how to register an app with each provider.
What a managed OAuth app is
Every OAuth toolkit can connect in two ways:
| Kind | Who registers the OAuth app | What the user sees on the consent screen |
|---|---|---|
| Managed | The operator, once per server | The operator's app name |
| Custom | Each project, in an auth config | The project's own app name |
When the operator has set up a managed app for a toolkit, managed_app_available is true in
GET /api/v1/toolkits/{slug}/auth_schemes, and the dashboard connects it with one click in
Apps, Quick connect and the automation templates. A project's custom auth config
(use_custom_app: true) still wins for that project. See
Connect accounts.
Each connection asks only for the scopes of the toolkit being connected (or of the auth config). So one Google app serves Gmail, Drive and YouTube, but a user who connects Drive only consents to Drive.
The redirect URI
There is one redirect URI for every provider:
https://<your web domain>/api/v1/connect/oauth/callbackIt is WEB_URL followed by /api/v1/connect/oauth/callback, for example
https://app.example.com/api/v1/connect/oauth/callback. Register it once in each provider app.
Register a separate app per environment (production, staging), each with its own redirect URI.
Owners and admins can copy it from Organization settings > Managed OAuth apps in the
dashboard.
Set the variables
Each provider needs two variables, on api, worker and mcp (never on web):
OAUTH_<PREFIX>_CLIENT_ID=...
OAUTH_<PREFIX>_CLIENT_SECRET=...PREFIX is upper case letters, digits and underscores. Set both or neither: a half-set pair stops
the service at startup and names the missing variable, never a value. Empty values count as unset.
A prefix that matches no toolkit logs one warning with the prefix name and is ignored. Existing managed connections always use the client that is set now: replacing a client ID or
removing a pair breaks their token refresh, and those users must reconnect.
OneDev
Put the lines in /etc/toolwire/env.production, next to the other settings:
OAUTH_GOOGLE_CLIENT_ID=1234567890-abc.apps.googleusercontent.com
OAUTH_GOOGLE_CLIENT_SECRET=...Then recreate the three services, without a rebuild:
toolwire-compose up -d --wait api worker mcp
toolwire-compose logs --tail 50 apitoolwire-compose and the deploy script copy only the OAUTH_*_CLIENT_ID and
OAUTH_*_CLIENT_SECRET lines into /etc/toolwire/env.oauth (root, mode 600) before every
compose call, and only api, worker and mcp load that file. A deploy with a half-set pair is
refused. The log shows a warning if a prefix matches no toolkit.
Docker Compose and other hosts
Keep the variables in a separate file, .env.oauth, next to docker-compose.prod.yml. Start from
.env.oauth.example:
cp .env.oauth.example .env.oauth && chmod 600 .env.oauth
# fill the pairs you use, then
docker compose --env-file .env.production -f docker-compose.prod.yml up -d --wait api worker mcpOnly api, worker and mcp read .env.oauth; web and migrate never see it. Keep nothing but
OAUTH_* lines in it. A plain restart keeps the old environment, so recreate the services. Without
Compose, set the same variables in the environment of api, worker and mcp. See
Self-hosting.
Prefixes and families
A toolkit's prefix is its family's prefix, or else its slug in upper case (hubspot is
HUBSPOT, zohocrm is ZOHOCRM). Three families share one app each:
| Prefix | Toolkits |
|---|---|
GOOGLE | gmail, google_calendar, googledrive, googlesheets, googledocs, googleslides, googleforms, googlemeet, googletasks, googlecontacts, googlechat, googleanalytics, googlesearchconsole, googletagmanager, googlebigquery, googleads, youtube, firebase, googlecloudvision |
MICROSOFT | microsoft365, azure, entraid, azuredevops |
ATLASSIAN | jira, confluence |
A family app must be allowed every scope of every family toolkit you want to offer, but users
only consent to one toolkit's scopes at a time. Bitbucket is not in the Atlassian family: it uses
its own OAuth consumers (BITBUCKET). GitHub Gist is not GitHub: it needs an OAuth App, not the
GitHub App (GIST).
In total, 98 toolkits can use a managed app, on 76 prefixes.
Check what is configured
Owners and admins open Organization settings > Managed OAuth apps. The page lists every prefix
with Configured or Not configured, the toolkits it covers, the two variable names (with
copy buttons), the redirect URI and the apps that are never managed. The same data comes from
GET /api/v1/oauth/managed-providers (dashboard session, owner or admin). It returns prefixes,
variable names and booleans only, never a client ID or secret:
{
"redirect_uri": "https://app.example.com/api/v1/connect/oauth/callback",
"providers": [
{
"prefix": "GOOGLE",
"family": true,
"configured": true,
"env": ["OAUTH_GOOGLE_CLIENT_ID", "OAUTH_GOOGLE_CLIENT_SECRET"],
"toolkits": ["gmail", "google_calendar", "googledrive", "youtube"]
}
],
"excluded": [{ "slug": "gitlab", "reason": "self_hosted" }]
}Step by step per provider
Provider consoles and review programs change often. The notes marked "check first" are our best reading of the provider's rules; confirm them in the provider's documentation before you rely on them.
Variables OAUTH_GOOGLE_CLIENT_ID and OAUTH_GOOGLE_CLIENT_SECRET, for all 19 Google toolkits.
-
In the Google Cloud Console, open Google Auth Platform (console.cloud.google.com/auth/clients (opens in a new tab)) and fill in Branding. Under Audience, choose External and publish the app (In production).
-
Create an OAuth client ID with the application type Web application. Add the redirect URI under Authorized redirect URIs.
-
Under APIs & Services > Library, enable the API of every toolkit you offer:
Toolkit API to enable gmailGmail API google_calendarGoogle Calendar API googledriveGoogle Drive API googlesheetsGoogle Sheets API googledocsGoogle Docs API googleslidesGoogle Slides API googleformsGoogle Forms API googlemeetGoogle Meet REST API googletasksGoogle Tasks API googlecontactsPeople API googlechatGoogle Chat API googleanalyticsGoogle Analytics Data API and Admin API googlesearchconsoleGoogle Search Console API googletagmanagerTag Manager API googlebigqueryBigQuery API googleadsGoogle Ads API youtubeYouTube Data API v3 firebaseFirebase Management, Cloud Firestore, FCM and Realtime Database API googlecloudvisionCloud Vision API -
Under Data access, add the scopes of those toolkits (the toolkit page in the dashboard lists them).
-
Set the two variables and recreate api, worker and mcp.
Verification. Sensitive scopes need Google's brand and scope verification. Restricted scopes (Gmail read and compose, full Drive) also need a yearly third-party security assessment. Until then users see an "unverified app" warning, and an unverified app is capped at 100 new users. In testing mode, refresh tokens expire after 7 days, so publish the app before real use.
Google Ads also needs a developer token in each project's auth config (developer_token);
the managed app does not provide one. Google Chat may need a Chat app configuration in the same
Cloud project (check first).
Microsoft
Variables OAUTH_MICROSOFT_CLIENT_ID and OAUTH_MICROSOFT_CLIENT_SECRET, for microsoft365,
azure, entraid and azuredevops.
- In the Microsoft Entra admin center (opens in a new tab), open App registrations, then New registration. Choose Accounts in any organizational directory (Multitenant) and the platform Web, with the redirect URI.
- Under Certificates & secrets > Client secrets, create a secret. It expires after at most 24 months: note the date and rotate it.
- Under API permissions, add the delegated permissions: Microsoft Graph for
microsoft365andentraid, Azure Service Managementuser_impersonationforazure, and Azure DevOpsuser_impersonationforazuredevops. Listing them is optional, but it makes admin consent one click.
A managed Microsoft app is multi-tenant, so keep the auth config's tenant setting at
organizations (the default; work and school accounts of any tenant) or common. A single tenant
ID only works with a custom app. Personal Microsoft accounts do not work with organizations.
Consent. Without publisher verification (a Microsoft AI Cloud Partner Program ID) the consent screen says "unverified", and tenants that only allow consent to verified publishers block users. Microsoft 365's file, site and mail permissions usually need a tenant admin's consent, and Entra ID's directory and security permissions always do (check first).
Atlassian
Variables OAUTH_ATLASSIAN_CLIENT_ID and OAUTH_ATLASSIAN_CLIENT_SECRET, for jira and
confluence.
- In the Atlassian developer console (opens in a new tab), choose Create > OAuth 2.0 integration.
- Under Authorization > OAuth 2.0 (3LO), add the redirect URI as Callback URL.
- Under Permissions, add Jira API and Confluence API and enable every scope the two toolkits use (classic and granular). Atlassian refuses a sign-in that asks for a scope the app does not have.
- Under Distribution, turn on Enable sharing (vendor name, privacy policy, personal data declaration). A new app is private: only its owner can authorize it until sharing is on.
Users may see a notice that the app was not reviewed by Atlassian; a Marketplace listing is optional. The site is chosen when the user connects.
HubSpot
Variables OAUTH_HUBSPOT_CLIENT_ID and OAUTH_HUBSPOT_CLIENT_SECRET.
- In a HubSpot developer account (opens in a new tab), create an app (a developer platform project) with distribution: marketplace, so any HubSpot account can install it. A listing is optional.
- Add the redirect URI (
redirectUrls, or Redirect URL in the older app settings). - Declare exactly these required scopes:
crm.objects.contacts.read,crm.objects.contacts.write,crm.objects.companies.read,crm.objects.companies.write,crm.objects.deals.read,crm.objects.deals.write,crm.objects.owners.read,crm.objects.tickets.readandcrm.objects.tickets.write. HubSpot refuses a sign-in whose scopes do not match the app. - Copy the client ID and secret from the app's Auth tab.
Unlisted apps may have an install limit before listing (check first).
Salesforce
Variables OAUTH_SALESFORCE_CLIENT_ID and OAUTH_SALESFORCE_CLIENT_SECRET.
- In Setup, open External Client App Manager > New External Client App and turn on OAuth. New connected apps are off by default since Spring '26; existing ones keep working.
- Add the redirect URI as Callback URL and the scopes
apiandrefresh_token.
Check first. A local external client app only works in its own Salesforce org. To let other orgs connect, you need a packaged app (second-generation package) or an existing connected app. Salesforce also stops users from authorizing apps that are not installed in their org unless an admin allows it. Users pick production, sandbox or their My Domain when they connect.
Zoom
Variables OAUTH_ZOOM_CLIENT_ID and OAUTH_ZOOM_CLIENT_SECRET.
- In the Zoom App Marketplace (opens in a new tab), choose Develop > Build App and a General app, user-managed.
- Add the redirect URI to both OAuth Redirect URL and OAuth Allow List.
- Pick the granular scopes on the app's Scopes page. The toolkit sends no scope of its own.
Until the app is published, only users of your own Zoom account can authorize it. Other accounts need a published app (listed or unlisted) after Zoom's review, which may refuse scopes you do not need (check first).
Dropbox
Variables OAUTH_DROPBOX_CLIENT_ID and OAUTH_DROPBOX_CLIENT_SECRET.
- In the Dropbox App Console (opens in a new tab), create an app with Scoped access and Full Dropbox.
- Under Settings > OAuth 2 > Redirect URIs, add the redirect URI.
- On the Permissions tab, tick
account_info.read,files.metadata.read,files.metadata.write,files.content.read,files.content.write,sharing.readandsharing.write.
An app in development status allows up to 500 linked users; apply for production status beyond that.
Zoho CRM
Variables OAUTH_ZOHOCRM_CLIENT_ID and OAUTH_ZOHOCRM_CLIENT_SECRET.
- In the Zoho API Console (opens in a new tab), add a Server-based Applications client with the redirect URI under Authorized Redirect URIs.
- In the client's Settings, turn on multi-DC, so accounts in other data centers (EU, IN, AU, JP, CA, SA, UK, CN) can connect. Users pick their data center when they connect.
The toolkit asks for ZohoCRM.modules.ALL, ZohoCRM.settings.READ, ZohoCRM.users.READ,
ZohoCRM.org.READ and ZohoCRM.coql.READ.
Slack
Variables OAUTH_SLACK_CLIENT_ID and OAUTH_SLACK_CLIENT_SECRET.
- At api.slack.com/apps (opens in a new tab), choose Create New App (from scratch or from a manifest).
- Under OAuth & Permissions > Redirect URLs, add the redirect URI, and add the bot scopes
chat:write,channels:read,channels:historyandreactions:write. - Under Manage Distribution, choose Activate Public Distribution, so other workspaces can install the app.
Rate limit. Since 2025-05-29, new installs of commercially distributed apps that are not
approved for the Slack Marketplace are limited on conversations.history and
conversations.replies to 1 request per minute and at most 15 messages per request. The full
steps are in packages/toolkits/src/slack/SETUP.md in the repository.
GitHub
Variables OAUTH_GITHUB_CLIENT_ID and OAUTH_GITHUB_CLIENT_SECRET.
- Create a GitHub App (not an OAuth App) at github.com/settings/apps/new (opens in a new tab), or in your organization's settings, with expiring user tokens.
- Add the redirect URI as Callback URL.
- Grant the permissions Repository metadata: read, Issues: read and write, Pull requests: read, and Repository contents: read. GitHub Apps ignore OAuth scopes.
- Set Where can this GitHub App be installed? to Any account, so it is public.
The full steps are in packages/toolkits/src/github/SETUP.md in the repository.
GitHub Gist
Variables OAUTH_GIST_CLIENT_ID and OAUTH_GIST_CLIENT_SECRET. Gist uses a classic OAuth App
at github.com/settings/developers (opens in a new tab), separate from the
GitHub App above. Add the redirect URI as Authorization callback URL. The toolkit asks for
gist and read:user.
Notion
Variables OAUTH_NOTION_CLIENT_ID and OAUTH_NOTION_CLIENT_SECRET.
- At notion.so/profile/integrations (opens in a new tab), create a new integration of type Public.
- Add the redirect URI under Redirect URIs and fill in the company name, website, privacy policy, terms and support email.
- Set the capabilities on the integration; Notion has no OAuth scopes.
Users pick the pages to share when they connect. The full steps are in
packages/toolkits/src/notion/SETUP.md in the repository.
Linear
Variables OAUTH_LINEAR_CLIENT_ID and OAUTH_LINEAR_CLIENT_SECRET.
- In Linear, open Settings > API > OAuth applications and create an application.
- Add the redirect URI under Callback URLs and turn on Public, so other workspaces can connect.
The toolkit asks for read, write and issues:create. Public OAuth apps need no review (check
first). The full steps are in packages/toolkits/src/linear/SETUP.md in the repository.
More providers
The same pattern works for every other eligible app: register a web app with the provider, add the redirect URI, allow the scopes the toolkit asks for (shown on its page in the dashboard), and set the two variables. Notes for frequently used ones (check each provider's rules first):
Xero
XERO. A Web app at developer.xero.com (opens in a new tab), with the
redirect URI. Scopes: offline_access, accounting.settings, accounting.contacts,
accounting.invoices, accounting.payments, accounting.banktransactions,
accounting.attachments. Uncertified apps are limited to 25 connected organizations; Xero's App
Partner certification lifts it. Xero is moving newer apps to finer scopes.
Box
BOX. A Platform App with User Authentication (OAuth 2.0) in the
Box developer console (opens in a new tab). Scopes are set on the app's
Configuration page. Enterprises may have to authorize the app.
Airtable
AIRTABLE. Register at airtable.com/create/oauth (opens in a new tab). Scopes:
data.records:read, data.records:write, schema.bases:read, schema.bases:write,
user.email:read. Airtable requires PKCE, which we always send.
Asana
ASANA. Create an app at app.asana.com/0/my-apps (opens in a new tab), add the
redirect URI on the OAuth tab, and allow distribution to Any workspace.
Figma
FIGMA. Create an app at figma.com/developers/apps (opens in a new tab) with
the redirect URI as Callback URL. People outside your Figma organization can only connect once
the app is published, after Figma's review.
Canva
CANVA. Create an integration in the
Canva developer portal (opens in a new tab) with the
redirect URI under Authorized redirects. A public integration needs Canva's review before
users outside your team can connect.
X (Twitter)
TWITTER. In the X developer portal (opens in a new tab), set up user
authentication as a Web App, Automated App or Bot (a confidential client). Scopes:
tweet.read, tweet.write, users.read, media.write, offline.access. API access is paid,
and the limits depend on your tier.
Pipedrive
PIPEDRIVE. Create the app in the Developer Hub of a Pipedrive sandbox account
(developers.pipedrive.com (opens in a new tab)). Scopes are set on the app. A
private app installs through a link; a Marketplace listing needs review.
Intercom
INTERCOM. Create an app in the Intercom Developer Hub with the redirect URI on the
Authentication page. Other workspaces can only connect a published app (listed or unlisted),
after Intercom's review. Users pick their region (US, EU, AU) when they connect.
Mailchimp
MAILCHIMP. Register the app under Profile > Extras > Registered apps in Mailchimp. No scopes;
the account's data center is looked up after sign-in.
Calendly
CALENDLY. Create an app at developer.calendly.com (opens in a new tab) with the
redirect URI. Scopes: users:read, organizations:read, event_types:read,
scheduled_events:read, scheduled_events:write, availability:read, scheduling_links:write.
monday.com
MONDAY. In the monday Developer Center, create an app and add the redirect URI on its OAuth page.
Tick the scopes me:read, boards:read, boards:write, workspaces:read, users:read,
updates:read and updates:write there too.
ClickUp
CLICKUP. Create an app under Settings > Apps in ClickUp with the redirect URI. No scopes.
Webflow
WEBFLOW. Create an app under Workspace settings > Apps & Integrations > Develop. Scopes:
sites:read, sites:write, pages:read, pages:write, cms:read, cms:write, forms:read.
A Marketplace listing is optional and reviewed if you list it.
Every other app
Every other eligible app uses its slug in upper case: AFFINITY, ALPACA, BINGWEBMASTER,
BITBUCKET, BITLY, BREVO, CAPSULECRM, CHATWORK, CLOSE, CONTENTFUL, CONVEX,
CROWDIN, DIGITALOCEAN, EMAILABLE, FACTORIAL, FRONT, GETRESPONSE, GONG, HARVEST,
HELPSCOUT, HEROKU, HIGHLEVELLOCATION, HUGGINGFACE, KIT, KLAVIYO, LINODE, MIRO,
MONEYBIRD, NETLIFY, PAGERDUTY, PINTEREST, PLANETSCALE, PUSHBULLET, RAILWAY,
RESEND, ROAM, SENTRY, SEVENIO, SPLITWISE, SQUARE, SUMUP, SUPABASE,
SURVEYMONKEY, TEAMVIEWER, TODOIST, TYPEFORM, WEBEX, WRIKE and ZEPLIN. The
toolkit's setup_help in GET /api/v1/toolkits/{slug}/auth_schemes names the provider's
console.
Apps that need extra settings
A managed app replaces the client ID and secret only. These toolkits still read settings from the project's auth config:
googleads: thedeveloper_token(secret) and the APIversion.factorial: the APIversion.- The Microsoft family:
tenant, which must stayorganizations(the default) orcommon.
Apps that are never managed
These OAuth apps never use a managed app, even with the variables set. Each project registers its own OAuth app for them (Custom OAuth apps):
| Apps | Reason | Why |
|---|---|---|
gitlab, gitea, mattermost, databricks | self_hosted | The sign-in runs on a server the user chooses. A managed client secret would be sent to that host. |
shopify | denylist | A public Shopify app needs App Store distribution, and a custom-distribution app works for one store only. |
docusign, zendesk, bamboohr | denylist | Their rules for one app shared by many customers are still being checked (go-live review, global OAuth client approval, partner program). |
buffer, wispr_flow | remote_mcp | Remote MCP apps register their own client automatically (Remote MCP apps). |
GitLab.com users keep using a custom app on https://gitlab.com.
Security
- Client secrets live only in the server's environment. They are never logged, returned by the API or shown in the dashboard, and an error names the variable, never the value.
- A managed app only gets tokens through the normal connect flow, tied to one organization, project and auth config. Refresh uses the app of the connection's own auth config.
- Only api, worker and mcp read the variables; the web server never does.

