This repository has been archived by the owner on Feb 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #170 from strongdm/feat/add-slack-classic-bot-plat…
…form Add slack classic bot platform #major
- Loading branch information
Showing
16 changed files
with
152 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Configure Slack | ||
|
||
In order to configure AccessBot integration with Slack follow the next steps: | ||
|
||
1. Go to https://api.slack.com/apps?new_classic_app=1 and create a classic app | ||
|
||
![image](https://user-images.githubusercontent.com/313803/115708663-936d2380-a370-11eb-94d2-b5edb1596af7.png) | ||
|
||
2. Go to OAuth & Permissions and add bot scope in the Scopes | ||
|
||
![image](https://user-images.githubusercontent.com/313803/115709326-653c1380-a371-11eb-9346-f2fa81c7fd24.png) | ||
|
||
IMPORTANT: The reason why you need a classic app and the bot scope, is because the current AccessBot implementation uses the RTM API, which is not available | ||
when updating to the new bot scopes. | ||
|
||
4. Go to App Home | ||
|
||
![image](https://user-images.githubusercontent.com/313803/115710249-6cafec80-a372-11eb-9071-bad38cf0d4bf.png) | ||
|
||
5. Click Add Legacy Bot User and set its name | ||
|
||
![image](https://user-images.githubusercontent.com/313803/115710432-a2ed6c00-a372-11eb-8fda-b8ef9c874e49.png) | ||
|
||
6. Go to Install App | ||
|
||
![image](https://user-images.githubusercontent.com/313803/115710557-c6181b80-a372-11eb-95dd-72927c81e53a.png) | ||
|
||
|
||
**Use "Bot User OAuth Token" for your _SLACK_TOKEN_ variable** | ||
|
||
_Original instructions from [this thread](https://github.com/slackapi/python-slack-sdk/issues/609#issuecomment-6398872129)_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# You can copy this file as "env-file" for your docker-compose | ||
# IMPORTANT: Do not enclose values in double or single quotes | ||
|
||
# ------------------------------------------------------------------------------ | ||
# | GENERAL ENV VARS | | ||
# ------------------------------------------------------------------------------ | ||
# These vars are required for any SDM_BOT_PLAFORM. | ||
|
||
SDM_BOT_PLATFORM=slack # possible values: slack, slack-classic, ms-teams | ||
SDM_API_ACCESS_KEY= | ||
SDM_API_SECRET_KEY= | ||
|
||
# ------------------------------------------------------------------------------ | ||
# | SLACK BOLT ENV VARS | | ||
# ------------------------------------------------------------------------------ | ||
# You need to use the following vars when SDM_BOT_PLATFORM var is "slack": | ||
|
||
# SLACK_APP_TOKEN= | ||
# SLACK_BOT_TOKEN= | ||
# SDM_ADMINS=@nickname | ||
|
||
# ------------------------------------------------------------------------------ | ||
# | SLACK CLASSIC ENV VARS | | ||
# ------------------------------------------------------------------------------ | ||
# You need to use the following vars when SDM_BOT_PLATFORM var is "slack-classic": | ||
|
||
# SLACK_TOKEN= | ||
# SDM_ADMINS=@nickname | ||
|
||
# ------------------------------------------------------------------------------ | ||
# | MS-TEAMS ENV VARS | | ||
# ------------------------------------------------------------------------------ | ||
# You need to use the following vars when SDM_BOT_PLATFORM var is "ms-teams": | ||
|
||
# [email protected] | ||
# AZURE_APP_ID= | ||
# AZURE_APP_PASSWORD= | ||
|
||
# ------------------------------------------------------------------------------ | ||
# | OPTIONAL VARS | | ||
# ------------------------------------------------------------------------------ | ||
# See: docs/CONFIGURE_ACCESSBOT.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
strongdm | ||
datetime | ||
errbot | ||
slackclient | ||
slack-bolt | ||
shortuuid | ||
fuzzywuzzy | ||
|