Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

feat: add Slack OAuth authentication flow#167

Merged
breaking-brake merged 6 commits intomainbreaking-brake/cc-wf-studio:mainfrom
feature/slack-oauthbreaking-brake/cc-wf-studio:feature/slack-oauthCopy head branch name to clipboard
Nov 28, 2025
Merged

feat: add Slack OAuth authentication flow#167
breaking-brake merged 6 commits intomainbreaking-brake/cc-wf-studio:mainfrom
feature/slack-oauthbreaking-brake/cc-wf-studio:feature/slack-oauthCopy head branch name to clipboard

Conversation

@breaking-brake
Copy link
Copy Markdown
Owner

@breaking-brake breaking-brake commented Nov 28, 2025

Summary

Add Slack OAuth authentication flow, allowing users to connect to Slack workspaces via OAuth instead of manually entering Bot Tokens.

Features

Core Functionality

  • Slack OAuth authentication flow: Secure OAuth 2.0 authentication via external OAuth server (cc-wf-studio-connectors)
  • OAuth UI tab: Added "Connect Slack App to Workspace" tab with intuitive workflow
  • Polling with exponential backoff: Server polling (1s initial → 1.5x multiplier → max 5s interval)
  • 5-minute timeout: Auto-timeout for abandoned authentication sessions

Cancellation Handling

  • Cancel button stops polling immediately
  • Backdrop click closes dialog and stops polling
  • Tab close stops polling via Webview dispose handler

Internationalization

  • Full support for 5 languages (en, ja, ko, zh-CN, zh-TW)
  • Review notice message for pending Slack app approval
  • Clear OAuth flow description text

Files Changed

File Description
src/extension/services/slack-oauth-service.ts OAuth service (new)
src/extension/commands/slack-connect-oauth.ts OAuth command handler (new)
src/extension/commands/open-editor.ts Add Webview message handling
src/webview/src/components/dialogs/SlackManualTokenDialog.tsx Add OAuth tab UI
src/webview/src/services/slack-integration-service.ts Add OAuth message functions
src/shared/types/messages.ts Add OAuth message types
src/webview/src/i18n/translations/*.ts Add 5-language translations

Testing

  • Manual E2E testing of OAuth authentication flow
  • Cancel button stops polling
  • Backdrop click stops polling
  • Tab close stops polling
  • Timeout behavior verified (5 minutes)
  • Code quality checks passed (format, lint, check, build)

🤖 Generated with Claude Code

breaking-brake and others added 6 commits November 28, 2025 20:39
- Add SlackOAuthService for OAuth 2.0 flow management
- Add /slack/init session pre-registration before auth
- Support both 'completed' and 'success' poll status
- Add tabbed UI (OAuth + Manual Token) in connection dialog
- Add i18n translations for OAuth in 5 languages

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Update OAuth tab title and button text for clarity
- Replace "Bot" with "Slack App" in error messages (all 5 languages)
- Implement exponential backoff for OAuth polling (1s→5s max)
- Generalize token deletion message for OAuth/manual tokens

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Pass oauthService instance to handleConnectSlackOAuth
- Use same instance for polling and cancellation
- Fixes issue where cancel button didn't stop OAuth polling

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Cancel polling when dialog is closed (click outside, ESC, etc.)
- Cancel polling when Webview panel is disposed (tab closed)
- Ensures polling doesn't continue in background after user leaves

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Allow closing dialog by clicking outside even during OAuth loading
- Cancel OAuth polling before closing when backdrop is clicked

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Remove redundant review notice title, keep only message
- Update OAuth tab title from "add" to "connect"
- Clarify OAuth description text for better UX
- Update review notice message wording
- Apply changes across all 5 languages

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@breaking-brake breaking-brake merged commit 7b49a5e into main Nov 28, 2025
3 checks passed
@breaking-brake breaking-brake mentioned this pull request Nov 28, 2025
github-actions Bot added a commit that referenced this pull request Nov 28, 2025
## [2.15.0](v2.14.1...v2.15.0) (2025-11-28)

### Features

* add default branch to Switch node ([#166](#166)) ([82b164b](82b164b))
* add Slack OAuth authentication flow ([#167](#167)) ([7b49a5e](7b49a5e))
@github-actions
Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 2.15.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.