https://github.com/4xposed/oauth-slack-discourse
Discourse plugin to sign up using slack
https://github.com/4xposed/oauth-slack-discourse
Last synced: 11 months ago
JSON representation
Discourse plugin to sign up using slack
- Host: GitHub
- URL: https://github.com/4xposed/oauth-slack-discourse
- Owner: 4xposed
- Created: 2015-05-22T07:09:16.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2016-09-12T03:23:56.000Z (almost 10 years ago)
- Last Synced: 2025-05-07T12:13:40.409Z (about 1 year ago)
- Language: Ruby
- Size: 9.77 KB
- Stars: 10
- Watchers: 0
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# oauth-slack-discourse
_________
**Slack API Oauth2 for Discourse**
Installation Instructions (for Docker installations):
* Register a new Slack API application at: https://api.slack.com/applications/new if you haven't already
* For the Redirect URL: http(s)://example.com/auth/slack/callback
* Open your container app.yml
* Under section ```env:``` you should add your Slack APP API credentials:
**Warning:** the **CLIENT_ID** should be a **String** (as it has a dot and otherwise Rails will consider it a FixNum and take away the last two digits)
```
SLACK_CLIENT_ID: 'CLIENT_ID'
SLACK_CLIENT_SECRET: 'CLIENT_SECRET'
SLACK_TEAM_ID: 'SLACK_TEAM_ID' (optional)
```
If **no** ```SLACK_TEAM_ID``` enviroment variable is set up it will ask the user the team with which he/she wants to sign up to Discourse
* Under section ```hooks``` add the follow line:
```
- git clone https://github.com/4xposed/oauth-slack-discourse.git
```
* Rebuild the docker container
```
./launcher rebuild my_image
```