@@ -10,11 +10,33 @@ The project is still under alpha, there are lots of things already done, but the
10
10
11
11
## Setup
12
12
13
- The first thing you need to do is to get a [ Slack token here] ( https://api.slack.com/custom-integrations/legacy-tokens ) .
13
+ ### Using legacy token
14
+
15
+ First of all get a [ Slack token here] ( https://api.slack.com/custom-integrations/legacy-tokens ) .
14
16
Use, create or request a token for each workspace that you'll use on Sclack.
15
- Not all workspaces allow you to generate a token, so sometimes you'll need to
17
+ Not all workspaces allow you to generate a legacy token, so sometimes you'll need to
16
18
ask for the administrator to enable the feature.
17
19
20
+ ### Without a legacy token
21
+
22
+ Unfortunately some serious hoops need to be jumped through to use a non-legacy token.
23
+
24
+ 1 . Go to < https://api.slack.com/apps >
25
+ 2 . Click "Create new app"
26
+ 3 . Give the app a name (maybe "Sclack") and select the server you'd like to use
27
+ 4 . Go to "Permissions" and add a new redirect URL: ` http://localhost:8080 `
28
+ 5 . Go back to the previous page, you'll be able to see "Client ID" (you will also need the "Client Secret" later). Use this to fill in this url:
29
+ ```
30
+ https://slack.com/oauth/authorize?client_id=[Client ID here]&scope=client
31
+ ```
32
+ 6 . Go to that URL in your browser, and authorize the app
33
+ 7 . The page will redirect to a blank page. Look at the URL and copy the ` code= ` parameter (http://localhost:8080?code=[code-will-be-here ] &state=)
34
+ 8 . Now using the copied code, as well as the "Client ID" and "Client Secret" from the app page, fill in and execute this command:
35
+ ```
36
+ curl -s "https://slack.com/api/oauth.access?client_id=[client id here]&client_secret=[client secret here]&code=[code here]"
37
+ ```
38
+ 9 . Finally, copy the ` access_token ` from the response (should start with ` xoxs- ` ). This is your new auth token for Sclack
39
+
18
40
## Optional Dependencies
19
41
20
42
### Nerd Fonts
0 commit comments