How to create Oauth2 credentials for Asana

How to create Oauth2 credentials for Asana

Setting up Asana

In this section, we’ll go through the process of setting up Asana and creating an OAuth application.

NOTE: If you already have an Asana OAuth app and access to the Client ID and Client Secret, you can skip this section.

Step 1: Create an Asana Developer App

Head over to the Asana Developer Apps page and create a new app.

  1. Log in with your Asana account.

  2. Click + New App in the developer console.

  1. Fill in the details:

  • App Name → e.g., Composio Integration

  • App Website → optional

  • Redirect URL → this must be set to Composio’s callback:

Save the app.

Once created, Asana will provide you with a Client ID and Client Secret. Copy them somewhere safe, as you’ll need them shortly.

Step 2: Configure OAuth Settings

  • Redirect URI → must exactly match the Composio callback above.

  • Scopes → Asana requires default scopes for basic access, but you can also request granular scopes (like tasks:read, projects:read, workspaces:read) depending on the integration needs.

That’s all you need to set up on the Asana side.

Creating the Auth Config in Composio

Now that you have your OAuth credentials, let’s configure them inside Composio.

  1. Open the Composio Dashboard.

  2. Click Create Auth Config.

  1. From the toolkit list, select Asana.

  2. Ensure the authentication type is set to OAuth2.

  3. Check Use your own developer authentication.

  4. Click Create Asana Auth Config.

Step 3: Fill in Auth Config

Next, go to Manage Auth Config and paste in the credentials you got from Asana:

  • Client ID → from Asana app settings

  • Client Secret → from Asana app settings

  • Redirect URI

<https://backend.composio.dev/api/v3/toolkits/auth/callback>
  • Scopes → leave defaults or customize based on needs (default, tasks:read, etc.)

Save the configuration.

Authorise and Connect

  1. In Composio, click Connect Account on the Asana auth config.

  2. This will redirect you to the Asana OAuth consent screen.

  3. Log in and approve access to your Asana workspace.

  4. On success, Composio stores the access + refresh tokens securely.

Base URL for API Calls

Finally, set the Base URL for Asana API calls to:

<https://app.asana.com/api/1.0>

That’s it! Your Asana + Composio OAuth integration is now ready.

You can now copy the Auth Config ID (starting with ac_...) from Composio and use it within your application code or Secret Manager.

Setting up Asana

In this section, we’ll go through the process of setting up Asana and creating an OAuth application.

NOTE: If you already have an Asana OAuth app and access to the Client ID and Client Secret, you can skip this section.

Step 1: Create an Asana Developer App

Head over to the Asana Developer Apps page and create a new app.

  1. Log in with your Asana account.

  2. Click + New App in the developer console.

  1. Fill in the details:

  • App Name → e.g., Composio Integration

  • App Website → optional

  • Redirect URL → this must be set to Composio’s callback:

Save the app.

Once created, Asana will provide you with a Client ID and Client Secret. Copy them somewhere safe, as you’ll need them shortly.

Step 2: Configure OAuth Settings

  • Redirect URI → must exactly match the Composio callback above.

  • Scopes → Asana requires default scopes for basic access, but you can also request granular scopes (like tasks:read, projects:read, workspaces:read) depending on the integration needs.

That’s all you need to set up on the Asana side.

Creating the Auth Config in Composio

Now that you have your OAuth credentials, let’s configure them inside Composio.

  1. Open the Composio Dashboard.

  2. Click Create Auth Config.

  1. From the toolkit list, select Asana.

  2. Ensure the authentication type is set to OAuth2.

  3. Check Use your own developer authentication.

  4. Click Create Asana Auth Config.

Step 3: Fill in Auth Config

Next, go to Manage Auth Config and paste in the credentials you got from Asana:

  • Client ID → from Asana app settings

  • Client Secret → from Asana app settings

  • Redirect URI

<https://backend.composio.dev/api/v3/toolkits/auth/callback>
  • Scopes → leave defaults or customize based on needs (default, tasks:read, etc.)

Save the configuration.

Authorise and Connect

  1. In Composio, click Connect Account on the Asana auth config.

  2. This will redirect you to the Asana OAuth consent screen.

  3. Log in and approve access to your Asana workspace.

  4. On success, Composio stores the access + refresh tokens securely.

Base URL for API Calls

Finally, set the Base URL for Asana API calls to:

<https://app.asana.com/api/1.0>

That’s it! Your Asana + Composio OAuth integration is now ready.

You can now copy the Auth Config ID (starting with ac_...) from Composio and use it within your application code or Secret Manager.