feat(platform): Support multiple credentials inputs on blocks#8932
Merged
feat(platform): Support multiple credentials inputs on blocks#8932
Conversation
… `credentials` inputs - Add `credentials_provider` and `credentials_types` to field schema from `CredentialsMetaInput` instead of `CredentialsField` - Remove `provider` and `supported_credential_types` params from `CredentialsField` and all its usages - Add `credentials` schema validation logic to `CredentialsMetaInput`, which is called from `BlockSchema.__pydantic_init_subclass__`
- Add missing providers to `ProviderName`
- Replace string literals for provider names with `ProviderName.{PROVIDER}` on blocks and in `CredentialsMetaInput`, `BlockWebhookConfig`, `*OAuthHandler`
- docs: Update instructions for blocks with authentication
✅ Deploy Preview for auto-gpt-docs-dev canceled.
|
✅ Deploy Preview for auto-gpt-docs canceled.
|
…support-multiple-provider-credentials-inputs
…support-multiple-provider-credentials-inputs
Contributor
|
Conflicts have been resolved! 🎉 A maintainer will review the pull request shortly. |
Member
Author
|
@aarushik93 could you branch from this PR and see if it works for you? I currently have no blocks to test it on. |
Contributor
|
This pull request has conflicts with the base branch, please resolve those so we can evaluate the pull request. |
…redentials-inputs
Contributor
|
Conflicts have been resolved! 🎉 A maintainer will review the pull request shortly. |
kcze
reviewed
Dec 13, 2024
autogpt_platform/backend/backend/integrations/webhooks/graph_lifecycle_hooks.py
Show resolved
Hide resolved
aarushik93
previously approved these changes
Dec 17, 2024
Contributor
aarushik93
left a comment
There was a problem hiding this comment.
Other than @kcze coments looks good
Contributor
|
This pull request has conflicts with the base branch, please resolve those so we can evaluate the pull request. |
Swiftyos
previously approved these changes
Jan 2, 2025
…redentials-inputs
Contributor
|
Conflicts have been resolved! 🎉 A maintainer will review the pull request shortly. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CredentialsFieldusage + useProviderNameglobally #8725Changes 🏗️
feat(platform): Support multiple credentials inputs on blocks
Aside from
credentials, fields within the name pattern*_credentialsare now also supported!Update docs with info on multi credentials support
Checklist 📋
For code changes: