...
Table of Contents |
---|
maxLevel | 24 |
---|
absoluteUrl | true |
---|
|
Overview
You can use this account type to connect Slack Snaps with data sources that use Dynamic OAuth2 accounts using either a Bot User Token (Bot Token) or a User Token.
Multiexcerpt include macro |
---|
name | Secrets_Management_Dynamic_Accounts |
---|
templateData | [] |
---|
page | S3 Dynamic Account |
---|
addpanel | false |
---|
|
Prerequisites
Valid Slack app that provides the following details:
...
See Start building Slack apps for details about creating an app. Once you install the app in your workspace, you can find these tokens in the https://api.slack.com/apps/<appid>/oauth? page, where <appid> is your application ID, which is populated in the browser's address bar after installing your app.
...
Parameter | Data Type | Description | Default Value | Example |
---|
Label | String | Required. Specify a unique label for the account. | N/A | Slack_Dynamic_OAuth_Bot |
Access Token | String/Expression | Required. Copy the value in Bot User OAuth Access Token or OAuth Access Token from the OAuth & Permissions section https://api.slack.com/apps/<App_ID>/oauth? and paste it into this field. <App_ID> corresponds to the Slack App you created for your Slack workspace. Note |
---|
title | Updating Scopes for your app |
---|
| When you update the list of Scopes for your Slack app in the OAuth Tokens & Redirect URLs section of the app, you must click Re-install app to ensure that the latest set of scopes take effect. |
Note |
---|
| By default, Slack tokens do not expire. If you have an Enterprise Admin account, you can set an expiry duration for your app's user token. See Revoke All OAuth Tokens to learn more about revoking all your OAuth tokens, if required. |
| N/A | xoxb-1331052996481-1411658495648-zrrpuI4BMvBQaRbqQABz3Zzx |
Header authenticated | Check box | Select this check box to specify that Slack uses the bearer header authentication. | Not Selected | Selected |
Multiexcerpt macro |
---|
name | ME_Slack_Redirect_URLs |
---|
|
Configuring Redirect URLs for your appWhile creating the Slack app, you must configure a Redirect (callback) URL for Slack to verify and authorize the communication between the app and your SnapLogic environment. - Open https://api.slack.com/apps/<app_ID>/oauth? in your browser, where <app_ID> is the 11-character alphanumeric identifier (starting with 'A') for your Slack app.
For example, https://api.slack.com/apps/A01AYUSRU5V/oauth? . You must log in to the site if you do not have a valid session running beforehand.
- In the left navigation, navigate to Features > OAuth & Permissions, and then scroll down to the Redirect URLs section.
- Click Add New Redirect URL.
Enter the redirect URL in the following format: https://<SnapLogic_pod_name>/api/1/rest/admin/oauth2callback/slack, where <SnapLogic_pod_name> corresponds to the domain of your SnapLogic environment such as elastic.snaplogic.com.
Slack app with REST Snap PackIf you intend to use your Slack app with the REST Snap Pack, add the Redirect URL: https://<SnapLogic_pod_name>/api/1/rest/admin/oauth2callback/rest in addition to the slack Redirect URL that you added in Step 4.
Click Add, and click Save URLs.
|
...