Loomio
Sat 21 Dec 2019 11:53PM

Slack integration

J J.G. Public Seen by 71

Good afternoon, everyone,

Just a quick question, I'm interested in the integration between Loomio and Slack. Is this integration possible when you host the solution yourself?

I tried to link the two solutions but it doesn't seem to work. I come across a screen that tells me that the client_id parameter is wrong. Looking at the URL I see that the parameter is empty.

So I created an application on Slack, got a "client_id" and entered it in the URL. This leads me to the authorization requests, and then brings me back to a screen telling me that the solution can't connect to Slack.

Looking at the logs, I get a message :

opening connection to slack.com:443...

loomio-app | opened

loomio-app | starting SSL for slack.com:443...

loomio-app | SSL established, protocol: TLSv1.2, cipher: ECDHE-RSA-AES128-GCM-SHA256

"GET /api/oauth.access?code=XXXXX&redirect_uriXXXXXXX HTTP/1.1 Content Type: application/json; charset=utf-8 Connection: close.

"HTTP/1.1 200 OK."

"Content-Type: application/json; charset=utf-8."

"Transfer-encoding: chunked."

loomio-app -> Connection: close.

"Date: Sat, 21 Dec 2019 23:33:26 GMT"

loomio-app | -> "Server: Apache."

"Access-Control-Expose-Headers: x-slack-req-id, retry-after."

"Access-Control-Allow-Headers: slack-route, x-slack-version-ts."

loomio-app -> "Strict-Transport-Security: max-age=31536000; includeSubDomains; preload"

"Referrer-Policy: no-referrer."

Vary: Accept-Encoding...

"X-Content-Type-Options: Nosniffing."

loomio-app -> "X-Slack-Req-Id: a946c7cc9c065bf6e60eb6b1341c6bcb\r\n"

"X-XSS-Protection: 0."

loomio-app | -> "Access-Control-Allow-Origin: *\r\n"

"X-Via: haproxy-wwww-nyqu\r\n."

"X-Cache: Miss from cloudfront."

loomio-app -> "Via: 1.1 a79264f1781916a9abe8d5b96e40a058.cloudfront.net (CloudFront)"

"X-Amz-Cf-Pop: MAD50-C1."

loomio-app | -> "X-Amz-Cf-Id: tn120knGidRHrqis--o3eiSwUzLNKfZsDqJ5tAHpJY6-Fv54md5AKg==\r\n"

loomio-app...

loomio-app...

loomio-app | reading 40 bytes...

loomio-app | -> "ok\":false,\"error\":\"invalidclientid\"}"

loomio-app | read 40 bytes

loomio-app | reading 2 bytes...

loomio-app | -> "\r\n"

loomio-app | read 2 bytes

Loomio-app.

loomio-app...

loomio-app | Conn close

loomio-app | Failed Slack api request. response: {"ok"=>false, "error"=>"invalidclientid"} token:

loomio-app | opening connection to slack.com:443...

Do you have any ideas?

Thank you in advance !

RG

Robert Guthrie Sun 22 Dec 2019 9:32AM

Yes, it's possible to use the Slack integration in your own host. Have you configured your .env correctly? You'll need values for:

SLACK_APP_KEY SLACK_APP_SECRET SLACK_VERIFICATION_TOKEN 
J

J.G. Mon 23 Dec 2019 1:18AM

Oh, yeah, yeah, yeah...

What an idiot!

I hadn't configured these settings, it wasn't going to work.

A thousand thanks and sorry.