- User login via slack Account
To use this plugin, you need to create a Slack App first, set the Scope and Redirect URL correctly, and copy the Client ID
, Client Secrect
, Signing Secret
and Webhook URL
. To activate the Slash Command function, you also need to set the slash command
in your app. Here are default settings you can try:
Scope: chat:write, commands, groups:write, im:write, incoming-webhook, mpim:write, users:read, users:read.email
RedirectURL: https://Your_Site_URL/answer/api/v1/user-center/login/callback
Slash command:
- Command: /ask
- Requesti URL: https://Your_Site_URL/answer/api/v1/slack/slash
- Usage Hint: [Title][Content][Tag1,Tag2...]
-
Client ID
: Slack App Client ID -
Client Secret
: Slack App Secret -
Signing Secret
: Slack App Signing Secret -
Webhook URL
: find in theIncoming Webhooks
feature, such ashttps://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX
Note: A Redirect URL must also use HTTPS. You can configure a Redirect URL and scope in the App Management page under OAuth & Permissions.