Skip to content
Docs

Creating an Atlassian OAuth 2.0 (3LO) app

This guide is part of the Publicus connection catalog. Once you have the credentials, connect the service and Publicus stores them for you.

Distilled from Atlassian’s own documentation: OAuth 2.0 (3LO) apps, Jira scopes, Confluence scopes. Retrieved 2026-07-03.

  1. From any page on developer.atlassian.com, select your profile icon (top-right) and choose Developer console.
  2. Select the Create dropdown and choose OAuth 2.0 integration, then enter an app name and pick the OAuth 2.0 (3LO) grant type.
  3. Select Authorization in the left menu; next to OAuth 2.0 (3LO), select Configure, enter the Callback URL exactly as shown on the connect form, and click Save changes.
  4. Select Permissions in the left menu and Add each API the connection needs (Jira API, Confluence API, Jira Service Management API), then configure its scopes. The per-capability scopes in this catalog entry list what each flow needs; offline_access is requested via the scope parameter at authorization time, not configured here.
  5. Copy the Client ID and Secret from the app’s Settings page.
  6. Apps are private by default — only the owning account can authorize them. To let other users connect, select Distribution in the left menu and enable sharing with the toggle.

Operational notes (from the 3LO guide):

  • The authorization URL requires audience=api.atlassian.com and prompt=consent alongside the standard client_id/scope/redirect_uri/state/response_type=code parameters.
  • Token exchange and refresh are POST https://auth.atlassian.com/oauth/token with a JSON body (Content-Type: application/json), client credentials included in the body.
  • Add offline_access to the requested scopes or no refresh token is returned. Refresh tokens rotate: every refresh response carries a new refresh token that invalidates the old one (10-minute reuse leeway; 90-day inactivity expiry, reset on each rotation) — always persist the newest.
  • 3LO access tokens are only valid through the gateway: call GET https://api.atlassian.com/oauth/token/accessible-resources (Bearer token) to list the authorized sites and their id (cloudId), then build API URLs as https://api.atlassian.com/ex/jira/{cloudid}/... or https://api.atlassian.com/ex/confluence/{cloudid}/.... Direct *.atlassian.net URLs do not accept 3LO tokens.

Open Connections under Credentials, choose Atlassian, and pick Atlassian OAuth 2.0 (3LO). Publicus asks for exactly the fields listed above and keeps them in your workspace’s secret storage.

See also: Atlassian in the catalog.

This guide is maintained by Publicus and published under CC BY 4.0.