All Projects → slackapi → oauth-tutorial

slackapi / oauth-tutorial

Licence: other
Slack OAuth setup tutorial using a simple slash command bot

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects
CSS
56736 projects

ARCHIVED

This piece of sample code has been archived. For more up to date samples, check out some of the other repositories on https://github.com/slackapi

Slack OAuth Demo with a Simple Bot

install

A simple Slack app (slash command) demo that repeats what you say after a command, /echo.

Sure, this sounds like a useless demo, but the poupose of this example is to show how to implement an OAuth flow to distrubite your app with these steps:

  1. Add an Slack OAuth button on your website
  2. GET to authorize with correct scopes queries
  3. Obtain an Access Token
  4. Use the token to call Slack APIs

Try this OAuth demo on Glitch!


Cool. First, fork this repo, (or Remix on Glitch if you want to try it on Glitch) to your own repo and get started!

1. Developing a Bot

See the step-by-step instructions at:

Setting up & Develop in your Dev Workspace - How to configure the EchoBot and install it on your testing Slack workspace

2. Distribute with OAuth

See the step-by-step instructions at:

Distibute Your App: How to work with an OAuth Button - How to make the app installable to any Slack workspaces with an OAuth button

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].