From d1df36affad03f20a2ccdd97cbc3405d8ccfe84e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Ko=C5=82odziejczak?= <31549762+mrl5@users.noreply.github.com> Date: Tue, 1 Nov 2022 22:06:02 +0100 Subject: [PATCH] fix(backend): extend default scope set for slack resource (#848) usecase: > as a windmill user I want to provide email of user to which slack direct message should be send rationale: https://api.slack.com/methods/users.lookupByEmail needs to be used. it requires `users:read.email` (which needs to be acquired together with `users:read` - more info: https://api.slack.com/scopes/users:read.email) --- backend/oauth_connect.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/oauth_connect.json b/backend/oauth_connect.json index 0ed093e6d9..e99ff62c73 100644 --- a/backend/oauth_connect.json +++ b/backend/oauth_connect.json @@ -25,7 +25,9 @@ "auth_url": "https://slack.com/oauth/authorize", "token_url": "https://slack.com/api/oauth.access", "scopes": [ - "chat:write:user" + "chat:write:user", + "users:read", + "users:read.email" ] }, "gsheets": {