Skip to content

Asana 凭据#

¥Asana credentials

你可以使用以下凭据验证以下节点:

¥You can use these credentials to authenticate the following nodes:

¥Asana Trigger

支持的身份验证方法#

¥Supported authentication methods

  • 访问令牌

¥Access token

  • OAuth2

相关资源#

¥Related resources

请参阅 Asana 开发者指南,了解有关使用该服务的更多信息。

¥Refer to Asana's Developer Guides for more information about working with the service.

使用访问令牌#

¥Using Access token

要配置此凭据,你需要一个 Asana 账户以及:

¥To configure this credential, you'll need an Asana account and:

  • 个人访问令牌 (PAT)

¥A Personal Access Token (PAT)

获取你的 PAT:

¥To get your PAT:

  1. 打开 Asana 开发者控制台

¥Open the Asana developer console. 2. 在“个人访问令牌”部分,选择“创建新令牌”。

¥In the Personal access tokens section, select Create new token. 3. 请输入令牌名称,例如 n8n integration

¥Enter a Token name, like n8n integration. 4. 选中复选框以同意 Asana API 条款。

¥Check the box to agree to the Asana API terms. 5. 选择“创建令牌”。

¥Select Create token. 6. 复制令牌并将其作为访问令牌输入到你的 n8n 凭据中。

¥Copy the token and enter it as the Access Token in your n8n credential.

更多信息,请参阅 Asana 快速入门指南

¥Refer to the Asana Quick start guide for more information.

使用 OAuth2#

¥Using OAuth2

要配置此凭据,你需要一个 Asana 账户。

¥To configure this credential, you'll need an Asana account.

Note for n8n Cloud users

Cloud users don't need to provide connection details. Select Connect my account to connect through your browser.

如果你使用的是 self-hosting n8n,则需要注册一个应用来设置 OAuth:

¥If you're self-hosting n8n, you'll need to register an application to set up OAuth:

  1. 打开 Asana 开发者控制台

¥Open the Asana developer console. 2. 在“我的应用”部分,选择“创建新应用”。

¥In the My apps section, select Create new app. 3. 输入你的应用名称,例如 n8n integration

¥Enter an App name for your application, like n8n integration. 4. 选择应用的用途。

¥Select a purpose for your app. 5. 选中复选框以同意 Asana API 条款。

¥Check the box to agree to the Asana API terms. 6. 选择“创建应用”。页面打开应用的基本信息。

¥Select Create app. The page opens to the app's Basic Information. 7. 从左侧菜单中选择“OAuth”。

¥Select OAuth from the left menu. 8. 在 n8n 中,复制 OAuth 重定向 URL。

¥In n8n, copy the OAuth Redirect URL. 9. 在 Asana 中,选择“添加重定向 URL”,然后输入你从 n8n 复制的 URL。

¥In Asana, select Add redirect URL and enter the URL you copied from n8n. 10. 从 Asana 复制客户端 ID 并将其输入到你的 n8n 凭据中。

1
¥Copy the **Client ID** from Asana and enter it in your n8n credential.
  1. 从 Asana 复制客户端密钥并将其输入到你的 n8n 凭据中。

    ¥Copy the Client Secret from Asana and enter it in your n8n credential.

更多信息,请参阅 Asana OAuth 应用注册文档

¥Refer to the Asana OAuth register an application documentation for more information.