Auth configs
Decide how your users sign in to a connector, with Dexby's OAuth app or your own.
An auth config is one way your users connect one connector. It fixes the auth method, the OAuth app, the API host and which tools are allowed. Every connection goes through exactly one auth config, so a user cannot connect a connector until it has one. Connectors that need no credential are the exception.
Create an auth config
Open the form
In the dashboard, open Build → Catalog and click Set up on the connector, or open Build → Auth configs and add one there.
Set the key
The Key is how code and connect links pick this config, for example quickbooks-sandbox.
Lowercase letters and numbers joined by -, _, : or ., up to 64 characters, unique in the
project. The form suggests the connector id, then <connector>-2, <connector>-3.
Pick the auth method
Choose one of the methods the connector declares, such as OAuth 2.0 or API key. See auth methods.
Choose the OAuth app, then save
For OAuth methods, pick an OAuth app (below), adjust Scopes if needed, and click Add auth config.
Managed or your own OAuth app
| Option | What users see | What you do |
|---|---|---|
| Dexby's managed OAuth app | Dexby on the consent page | Nothing. Offered only when the deployment has a client for it. |
| Your own OAuth app | Your app's name | Register an app with the provider, enter Client ID and Client secret. |
The managed app is fine for development. Switch to your own before launch. The client secret is encrypted and never shown again.
Some apps also need a value that belongs to the OAuth app, entered with its client. Google Ads asks for the Developer token from your manager account's API Center. It is stored and shown the same way as the secret.
With your own app, register this redirect URL with the provider. The form shows it under Redirect URL to register with a copy button:
https://api.dexby.ai/oauth/callbackThe URL is the same for every connector and auth config in your project.
Token refreshes use the config's current OAuth app. Some providers reject refresh tokens issued to another client, so after you switch apps, affected users may need to reconnect.
Scopes
Scopes starts with the connector's default scopes. For apps that list their scopes, such as Google, it is a checklist: tick what the auth config should ask for, and turning an action on ticks the scope it needs. Other apps take a typed list. Up to 200.
Users are asked to grant the scopes you picked, plus any the app needs on every sign-in. Google's sign-in identity and email address are always asked for, shown ticked and locked, so a returning account is recognised. The hosted Connect page and GET /v1/auth-configs show this same list. An app with a checklist needs at least one scope.
A change applies to later sign-ins. Accounts already connected keep what they granted until they reconnect, and their actions follow that grant.
Use the key
Pass the key where you choose which auth config a user connects through:
| Where | Field |
|---|---|
| Connect link | authConfigs: ['<auth-config-key>'] offers only those configs. |
POST /v1/connections | authConfig. Without it, the connector's first config is used. |
<auth-config-key> is the Key from Build → Auth configs. It is not the config's internal
ID (cfg_…).
Other settings
- Host (optional): only for apps that also run elsewhere, such as a self-hosted edition or separate dev and prod URLs. Enter your installation's or environment's public https API address. Other apps always use their own host, since credentials are sent there.
- Actions: untick tools this config must not run. A call to one fails with
403 ACTION_DISABLED. When an app gains tools in a catalog update, they start off in every config that already exists, so accounts and sessions keep exactly what they could run; tick them to turn them on. A config created later has them on. See New tools start off. - Auth method can change only while no accounts are connected through the config. To offer another method, add another config.
- Global connection: Connect for everyone connects one account for the whole project. Every user in the project can use it, and calls still record which user made them. See Global connections.
- Delete disconnects every account connected through the config, global accounts included, and erases their credentials. It cannot be undone.
New tools start off
Dexby records why each action of a config is off: you or an API caller turned it off, or the app gained it in a catalog update. The API and SDK save actions two ways:
enableActionsanddisableActionschange only the actions they name. Turning on a tool the app gained takesenableActions.disabledActionsreplaces the list of actions you turned off. Tools the app gained stay off whatever that list says, so a list read before the update cannot turn them on.
curl -X PATCH "https://api.dexby.ai/v1/auth-configs/$CONFIG_ID" \
-H "Authorization: Bearer $DEXBY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"enableActions":["weatherapi_get_forecast"]}'