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.
- From any page on developer.atlassian.com, select your profile icon (top-right) and choose Developer console.
- Select the Create dropdown and choose OAuth 2.0 integration, then enter an app name and pick the OAuth 2.0 (3LO) grant type.
- 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.
- 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_accessis requested via thescopeparameter at authorization time, not configured here. - Copy the Client ID and Secret from the app’s Settings page.
- 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.comandprompt=consentalongside the standardclient_id/scope/redirect_uri/state/response_type=codeparameters. - Token exchange and refresh are
POST https://auth.atlassian.com/oauth/tokenwith a JSON body (Content-Type: application/json), client credentials included in the body. - Add
offline_accessto 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 theirid(cloudId), then build API URLs ashttps://api.atlassian.com/ex/jira/{cloudid}/...orhttps://api.atlassian.com/ex/confluence/{cloudid}/.... Direct*.atlassian.netURLs do not accept 3LO tokens.
Connect it to Publicus
Section titled “Connect it to Publicus”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.