Skip to main content

OAuth client credentials for dbt State Deprecated

The dbt State app is deprecated

The standalone dbt State app (app.state.dbt.com) is no longer accepting new users. If you have an existing dbt State app account, create a free dbt platform account to continue using dbt State — your free trial will be extended upon account creation.

If you're using the standalone dbt State web app, authenticate dbt State with OAuth client credentials.

Prerequisites​

Roles and tab access​

The dbt State web app has four tabs under Organization:

TabDescription
UsageView your project reuses and compute time saved once dbt State is enabled.
UsersInvite team members and grant or revoke access.
BillingView daily active target tables (DATTs) for the current billing period.
ClientsCreate and manage OAuth clients for CI/CD and other non-interactive environments.

Your role determines which tabs you can access.

RoleAccessNotes
OwnerUsage, Users, Billing, ClientsThe user who created the organization is the Owner by default. An Owner can transfer their role to another user, which demotes the original Owner to Admin.
AdminUsage, Users, Billing, Clients—
DeveloperUsageDefault role when users are added.

An existing Owner or Admin can grant or revoke admin access from the Users tab.

Creating an OAuth client​

  1. In the dbt State web app, navigate to the Clients tab.
  2. Click Add OAuth Client.
  3. Enter a name and description for the new client and click Create.
  4. Copy the client ID and secret to use in your environment configuration.

Configuring OAuth authentication​

Once you have the client ID and secret, set the following environment variables in your environment. Using environment variables is the recommended approach as it keeps sensitive credentials out of your code repository.

DBT_ENGINE_STATE_OAUTH_CLIENT_ID=YOUR_CLIENT_ID
DBT_ENV_SECRET_STATE_OAUTH_CLIENT_SECRET=YOUR_CLIENT_SECRET
Report incorrect code

Replace YOUR_CLIENT_ID and YOUR_CLIENT_SECRET with the values from your OAuth client.

Once configured, verify dbt State is active.

Was this page helpful?

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

0
Loading