This is a simple Express.js app which provides the authentication API for Team Time Zone. The only endpoint is /api/tokens
, which implements the second stage of the Slack OAuth2 Web Authentication Flow.
Clone the repository, then run npm install
.
You'll need to configure your Slack application keys to use this yourself. Store these on your server in a .env
file, using the format given in .env.example
. You can also use this file to change the port that Express listens on.
The Ember app expects the token endpoint at /api/tokens
on the same domain it is served from, so you will probably need to set up a proxy to do that. How you do so depends on your web server.
- Add integration tests with Nock
- More documentation on deployment
- Better error handling