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: improve composio oauth experience #4613

Merged
merged 3 commits into from
Nov 23, 2024
Merged

Conversation

kaavee315
Copy link
Contributor

@kaavee315 kaavee315 commented Nov 14, 2024

This pull request introduces several changes to the ComposioAPIComponent class in the composio_api.py file to enhance authentication handling and input configuration. The key changes include the addition of new input types for authentication, modifications to the update_build_config method to handle authentication status, and the removal of redundant input fields.

Enhancements to authentication handling:

  • Added LinkInput for authentication link and StrInput for authentication status in the ComposioAPIComponent class to facilitate user authentication with the selected app.
  • Updated the update_build_config method to check the authentication status of the selected app and update the configuration accordingly. This includes generating OAuth URLs or indicating the need for an API key.

Input configuration improvements:

  • Removed the auth_status_config field and its related logic, as it has been replaced by the new auth_link and auth_status inputs.
  • Changed the required attribute of the action_names input to True to ensure that actions are always specified.

Dependency updates:

  • Imported NoItemsFound exception from composio.client.exceptions to handle cases where no connection is found for the selected app.

@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. enhancement New feature or request labels Nov 14, 2024
@ogabrielluiz ogabrielluiz changed the title feat: imporve composio oauth experience feat: improve composio oauth experience Nov 14, 2024
@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels Nov 14, 2024
@ogabrielluiz
Copy link
Contributor

ogabrielluiz commented Nov 14, 2024

Hey @kaavee315

Thanks for this update.

Planning on updating composio in another PR?

@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:M This PR changes 30-99 lines, ignoring generated files. labels Nov 15, 2024
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Nov 22, 2024
@ogabrielluiz ogabrielluiz merged commit 3e1b22b into langflow-ai:main Nov 23, 2024
27 checks passed
diogocabral pushed a commit to headlinevc/langflow that referenced this pull request Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request lgtm This PR has been approved by a maintainer size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants