Skip to main content

Slack

Step 1: Config Slack App

First, you need to create an app on Slack API. Give your bot/app the following OAuth permission scopes: chat:write, chat:write.public

slack_app

Step 2: Get Bot User OAuth Access Token and Channel ID

Copy your Bot User OAuth Access Token for usage below.

slack_token

Copy the Channel ID of the channel you want to post a message to. You can grab the Channel ID by right clicking a channel and selecting copy name

slack_channel

Step 3: Configure Casdoor Slack Provider

There are three required fields: App Key, Content, and Chat ID. The relationship between the fields and Slack is as follows:

NameName in Slack
Secret keyAccess Token
Chat IDChannel ID
Content

slack_provider