Skip to content
Docs

Creating an Asana OAuth 2.0 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 Asana’s own documentation: OAuth, OAuth scopes, and the live authorization-server metadata. Retrieved 2026-07-03.

  1. Sign in to Asana and open the developer console at My apps (My developer apps). Select Create new app.
  2. Give the app a name and accept the API terms. On the app’s OAuth settings, add the Redirect URL exactly as shown on the connect form (it must match the redirect_uri sent at authorization time).
  3. Under OAuth > Permission scopes, either toggle Full permissions (access to all endpoints) or select the specific granular scopes the connection needs. Asana enforces registration: requesting a scope the app has not registered will fail. The per-capability scopes in this catalog entry (tasks:read, projects:write, …) list what each flow needs; register those.
  4. Copy the Client ID and Client secret from the app’s OAuth settings.

Operational notes (from the OAuth guide):

  • Authorization: redirect the user to GET https://app.asana.com/-/oauth_authorize with client_id, redirect_uri, response_type=code, state, and a space-delimited scope. PKCE is supported and recommended: add code_challenge and code_challenge_method=S256 (the metadata advertises only S256).
  • Token exchange: POST https://app.asana.com/-/oauth_token with Content-Type: application/x-www-form-urlencoded and a form body of grant_type=authorization_code, client_id, client_secret, redirect_uri, code, and (if used) code_verifier. The response returns access_token (a bearer token, valid one hour — expires_in typically 3600), refresh_token, token_type, and a data object identifying the authorizing user.
  • Refresh: POST the same token endpoint with grant_type=refresh_token, refresh_token, client_id, and client_secret. Asana does not document whether refresh tokens rotate, so this catalog entry makes no rotation claim — persist whatever the response returns.
  • Scopes: if no scope is sent, the app falls back to the legacy default OAuth scope only if it was registered with Full permissions. Identity is available via the OIDC scopes openid, email, and profile.
  • Revoke: POST https://app.asana.com/-/oauth_revoke with client_id, client_secret, and the token to deauthorize a token.
  • All API calls go to the https://app.asana.com/api/1.0 base URL with Authorization: Bearer <access_token>.

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

See also: Asana in the catalog.

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