Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(platform): Add Slack OAuth 2.0 support for both bot and user #8909

Draft
wants to merge 22 commits into
base: dev
Choose a base branch
from

Conversation

Abhi1992002
Copy link
Contributor

Changes

  • Added support for Slack OAuth2 as both a bot and a user
  • Included a sample "SlackPostMessage" block
  • Made frontend changes for Slack integration

We need a local tunnel to test it.

Demo

Untitled.video.-.Made.with.Clipchamp.mp4

TODO :

  • Provide support for all endpoints of the Web API and the Event API.
  • Currently, we can only add credentials for one workspace. We need a way to add credentials for multiple workspaces.

Abhi1992002 and others added 13 commits December 7, 2024 13:15
- Updated `store.py` to improve state token management by adding PKCE support and simplifying code challenge generation.
- Modified environment variable names in `.env.example` for consistency.
- Removed unnecessary `is_multi_select` attributes from various Twitter-related input schemas to streamline the code.
- Cleaned up exception handling in Twitter list management and tweet management blocks by removing redundant error logging.
- Removed debug print statements from various components to clean up the codebase.
- Fixed a minor error message in the Twitter OAuth handler for clarity.
@Abhi1992002 Abhi1992002 requested a review from a team as a code owner December 9, 2024 06:31
@Abhi1992002 Abhi1992002 requested review from ntindle and majdyz and removed request for a team December 9, 2024 06:31
@github-actions github-actions bot added platform/frontend AutoGPT Platform - Front end platform/backend AutoGPT Platform - Back end platform/blocks labels Dec 9, 2024
Copy link

netlify bot commented Dec 9, 2024

Deploy Preview for auto-gpt-docs-dev canceled.

Name Link
🔨 Latest commit 6d19825
🔍 Latest deploy log https://app.netlify.com/sites/auto-gpt-docs-dev/deploys/675bd488c0d5b000088870fd

@Abhi1992002 Abhi1992002 changed the title Feature/slack integration feat(platform): Add Slack OAuth 2.0 support for both bot and user Dec 9, 2024
Copy link

netlify bot commented Dec 9, 2024

Deploy Preview for auto-gpt-docs ready!

Name Link
🔨 Latest commit 6d19825
🔍 Latest deploy log https://app.netlify.com/sites/auto-gpt-docs/deploys/675bd4889c11ad0008cf6d83
😎 Deploy Preview https://deploy-preview-8909--auto-gpt-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@majdyz majdyz marked this pull request as draft December 9, 2024 19:37
@majdyz
Copy link
Contributor

majdyz commented Dec 9, 2024

Since this relies on #8754 and the PR is still on draft, I'm marking this PR as draft too

@ntindle
Copy link
Member

ntindle commented Dec 9, 2024

for the local tunnel, we typically use ngrok

@github-actions github-actions bot added the conflicts Automatically applied to PRs with merge conflicts label Dec 9, 2024
Copy link
Contributor

github-actions bot commented Dec 9, 2024

This pull request has conflicts with the base branch, please resolve those so we can evaluate the pull request.

@Torantulino
Copy link
Member

Resolves #8325

@Abhi1992002
Copy link
Contributor Author

TODO :

  • Add support to new credential system

ntindle and others added 9 commits December 12, 2024 14:44
- Introduced Slack OAuth handlers for both bot and user authentication.
- Added new environment variables for Slack client IDs and secrets in `.env.example`.
- Implemented `SlackPostMessageBlock` for posting messages to Slack channels.
- Updated `pyproject.toml` to include Slack SDK dependencies.
- Enhanced OAuth integration by registering Slack handlers in the OAuth module.
- Updated frontend components to support Slack provider display and icons.

# Conflicts:
#	autogpt_platform/backend/backend/integrations/oauth/__init__.py
#	autogpt_platform/backend/poetry.lock
#	autogpt_platform/backend/pyproject.toml
@Abhi1992002 Abhi1992002 force-pushed the feature/slack-integration branch from 1242a9a to 6d19825 Compare December 13, 2024 06:30
Copy link
Contributor

Conflicts have been resolved! 🎉 A maintainer will review the pull request shortly.

@github-actions github-actions bot added conflicts Automatically applied to PRs with merge conflicts and removed conflicts Automatically applied to PRs with merge conflicts labels Dec 13, 2024
Copy link
Contributor

This pull request has conflicts with the base branch, please resolve those so we can evaluate the pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conflicts Automatically applied to PRs with merge conflicts platform/backend AutoGPT Platform - Back end platform/blocks platform/frontend AutoGPT Platform - Front end size/xl
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

4 participants