OAuth 2.0
Dash0 supports OAuth 2.0 to let third-party applications act on behalf of a user without requiring that user to share their credentials. This enables integrations, command-line tools, and other clients to authenticate against the Dash0 API using short-lived access tokens granted through a standard authorization flow.
Applications need no manual onboarding. They can register themselves through dynamic client registration, or identify themselves with a Client ID Metadata Document. The full specification, including the authorization server metadata, supported grant types, and available scopes, is documented in the Dash0 API reference.
How OAuth 2.0 Access Works
When a user authorizes an OAuth 2.0 client, Dash0 issues an access token that the client can use to call the Dash0 API. Tokens are scoped and subject to the following rules:
- User-scoped permissions: An access token grants the client the same permissions the authorizing user has, limited to what the user consented to at authorization time. A client cannot exceed the user's own access.
- Organization-scoped tokens: Each access token is bound to a single Dash0 organization. A client that needs to act across multiple organizations must obtain a separate token for each one.
How Applications Identify Themselves
Dash0 accepts two ways for an application to get a client ID:
- Dynamic client registration: The application registers itself through the standard OAuth 2.0 Dynamic Client Registration protocol and receives a client ID. See the API reference for endpoint details.
- Client ID Metadata Document: The application uses an
httpsURL as its client ID, and that URL serves a JSON document with the application's name and redirect URIs, as defined in the OAuth Client ID Metadata Document draft . Dash0 fetches the document when the user signs in, so the application skips registration and keeps the same client ID across reconnects. Claude and Claude Code use this method. The authorization server metadata advertises support withclient_id_metadata_document_supported.
A Client ID Metadata Document must meet these requirements:
- URL: Uses
httpsand a domain name, not an IP address. It has a path other than/, and no user info, query, fragment, or.and..segments. - Response: The server answers within 3 seconds with
200, a JSON content type, and a body of at most 5 KiB. Dash0 does not follow redirects. - Client ID: The document's
client_idequals the URL it is served from. - Public client:
token_endpoint_auth_methodis absent ornone, and the document contains no client secret. - Redirect URIs: The same rules apply as for dynamic client registration.
- Caching: Dash0 caches the document according to its
Cache-ControlorExpiresheaders, for at least 5 minutes and at most 24 hours.
The consent screen of an application that uses a Client ID Metadata Document names the host of its client ID URL, such as claude.ai, and shows the name from the document beneath it. Because anyone can publish such a document, check that host before you click Allow access.
Audit Logging
Every use of an OAuth 2.0 client is recorded in the organization's audit logs. Organization administrators can see which users authorized which clients and which actions those clients performed on the user's behalf. This makes it possible to review third-party access alongside all other organization activity.
Where OAuth 2.0 Is Already Supported
The following Dash0 tools and integrations use OAuth 2.0 to authenticate on behalf of users:
- AI Tool Integrations: Dash0's AI tool integrations use OAuth 2.0 to authenticate, allowing AI assistants to access your observability data with your delegated permissions.
- Dash0 CLI: The CLI authenticates via OAuth 2.0 with PKCE using a browser-based login flow (
dash0 login), allowing command-line operations with your delegated permissions. Static auth tokens remain available for automation workflows. - Terraform Provider: The provider authenticates via OAuth 2.0 when loading credentials from a Dash0 CLI profile configured with OAuth, allowing infrastructure-as-code workflows with your delegated permissions. Static auth tokens remain available for CI/CD and automation.
Managing Authorized Applications
Users can review and revoke any OAuth 2.0 application they have previously authorized. Navigate to User Settings → Applications to see the list of authorized clients and revoke access for any application that is no longer needed. Revoking an application invalidates its existing access tokens immediately.
The list holds one entry per application and organization. Authorizing the same application for the same organization again replaces its entry. An application that registers dynamically gets a new client ID on every registration, so it can appear more than once.
Last updated:
