Create a Slack Application
To index content from Slack, you must create a Slack OAuth application to represent the connector.
To create a Slack OAuth application to represent the connector
-
Go to https://api.slack.com/apps.
-
Click Create New App.
Make a note of the client ID and client secret. You will need this information to run the OAuth configuration tool that is supplied with the connector.
-
Click OAuth & Permissions.
-
Add a redirect URL.
- To use the NiFi Ingest connector, the redirect URL must match the URL shown in the advanced configuration dialog of the NiFi processor.
- To use the standard connector, the redirect URL must match the value of the
RedirectUrl
parameter in the OAuth tool configuration file,oauth_tool.cfg
. The default value ishttps://localhost:7878/oauth
.
-
Add the following User Token Scopes:
Name Justification identify channels:history Process Channels channels:read Process Channels groups:history Process Groups groups:read Process Groups im:history Process IM im:read Process IM mpim:history Process MPIM mpim:read Process MPIM files:read Process Files emoji:read Process Messages users:read Mapped Security users:read.email Mapped Security - Configure the connector to authenticate using OAuth, by following the steps in Configure OAuth Authentication.