spectrum2/documentation/frontends/slack.md

24 lines
1.1 KiB
Markdown
Raw Permalink Normal View History

2015-12-03 19:21:17 +01:00
---
layout: config
title: Spectrum 2
---
## Slack frontend Description
2016-02-09 21:09:14 +01:00
Slack frontend allows users to use Slack as a frontend network for Spectrum 2. This page describes how to setup your own Spectrum 2 instance with Slack frontend.
2015-12-03 19:21:17 +01:00
### Configuration
You have to choose this frontend in Spectrum 2 configuration file to use it:
[service]
frontend=slack
2016-02-09 21:09:14 +01:00
client_id=42132532467.11232153249
client_secret=cfdw9erw9ew0gew9gds0sa9wqd9f8d6a
2015-12-03 19:21:17 +01:00
2016-02-09 21:36:51 +01:00
To obtain the `client_id` and `client_secret` values, you have to create new Slack application on [Slack website](https://slack.com/apps/build). You also have to setup [Spectrum 2 Web Interface](../management/web_interface.html) to allow Slack users to register the transport and configure it. While creating new Slack application, you also have to setup the `Redirect URI`. Spectrum 2 Web Interface expects the `Redirect URI` to be configured as `http://domain.tld/oauth2`. You can choose whatever domain you are running at, but you have to preserve the `/oauth2` location.
2015-12-03 19:21:17 +01:00
## Usage
2016-02-09 21:09:14 +01:00
Once you setup Spectrum 2 with proper `client_id` and `client_secret`, you can register as new user in the Spectrum 2 Web Interface.