GetOAuthAccessToken
Gets an authentication token from Asana.
Input
| Name | Type | Required | Description |
| AuthMode | String | False | The type of authentication mode to use. Select App for getting authentication tokens via a desktop app. Select Web for getting authentication tokens via a Web app.
The allowed values are APP, WEB. The default value is APP. |
| CallbackUrl | String | False | The URL the user will be redirected to after authorizing your application. This value must match the Redirect URL you have specified in the Asana app settings. Only needed when the Authmode parameter is Web. |
| Verifier | String | False | The verifier returned from Asana after the user has authorized your app to have access to their data. This value will be returned as a parameter to the callback URL. |
| State | String | False | Encodes state of the app, which will be returned verbatim in the response and can be used to match the response up to a given request. |
| Scope | String | False | A space-delimited set of one or more scopes to get the user's permission to access. If no scopes are specified, the default OAuth scope will be used—provided the app was originally registered with Full permissions. The supported scopes are 'attachments:delete attachments:read attachments:write custom_fields:read custom_fields:write goals:read portfolios:read portfolios:write project_templates:read projects:delete projects:read projects:write stories:read stories:write tags:read tags:write task_templates:read tasks:delete tasks:read tasks:write teams:read workspace.typeahead:read users:read webhooks:delete webhooks:read webhooks:write workspaces:read'. |
Result Set Columns
| Name | Type | Description |
| OAuthAccessToken | String | The access token used for communication with Asana. |
| OAuthRefreshToken | String | The OAuth refresh token. This is the same as the access token in the case of Asana. |
| ExpiresIn | String | The remaining lifetime on the access token. A -1 denotes that it will not expire. |