From f9cc73f5340f25c363cd2b8b7a5c02866f0c9f31 Mon Sep 17 00:00:00 2001 From: Theodore Li Date: Mon, 13 Jul 2026 10:31:09 -0700 Subject: [PATCH] fix(slack): stop requesting unapproved OAuth scopes that break connect (#5631) --- apps/sim/lib/oauth/oauth.ts | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/apps/sim/lib/oauth/oauth.ts b/apps/sim/lib/oauth/oauth.ts index ff544e5e2e..d472d8d611 100644 --- a/apps/sim/lib/oauth/oauth.ts +++ b/apps/sim/lib/oauth/oauth.ts @@ -735,9 +735,12 @@ export const OAUTH_PROVIDERS: Record = { 'groups:write', 'chat:write', 'chat:write.public', - 'assistant:write', - 'app_mentions:read', - 'im:history', + // TODO: Re-add once Slack app review approves these. Requesting a scope + // the app is not yet approved for makes Slack reject the entire + // authorization with "unapproved permissions requested", breaking connect. + // 'assistant:write', + // 'app_mentions:read', + // 'im:history', 'im:write', 'im:read', 'users:read', @@ -748,7 +751,7 @@ export const OAUTH_PROVIDERS: Record = { 'canvases:write', 'reactions:write', 'reactions:read', - 'pins:read', + // TODO: Add 'pins:read' once Slack app review is approved ], }, },