-
Notifications
You must be signed in to change notification settings - Fork 44.4k
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(server): Add credentials API endpoints #8024
Merged
Pwuts
merged 44 commits into
master
from
kpczerwinski/open-1807-api-endpoints-to-retrieve-integration-credentials
Sep 17, 2024
Merged
feat(server): Add credentials API endpoints #8024
Pwuts
merged 44 commits into
master
from
kpczerwinski/open-1807-api-endpoints-to-retrieve-integration-credentials
Sep 17, 2024
Conversation
This file contains 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
…-oauth-tokens-in-supabase-user-metadata
… Supabase client
- Add `supabase` dependency - Add Supabase credentials to `Secrets` - Add `get_supabase` utility to `.server.utils` - Add `.server.integrations` API segment with initial implementations for OAuth init and exchange endpoints
…e' into reinier/open-1701-implement-oauth-initiation-back-end-endpoints-for-each
Co-authored-by: Reinier van der Leer <[email protected]>
…on-back-end-endpoints-for-each
…on-back-end-endpoints-for-each
…trieve-integration-credentials
github-actions
bot
removed
the
conflicts
Automatically applied to PRs with merge conflicts
label
Sep 9, 2024
Conflicts have been resolved! 🎉 A maintainer will review the pull request shortly. |
✅ Deploy Preview for auto-gpt-docs canceled.
|
Pwuts
reviewed
Sep 10, 2024
Pwuts
reviewed
Sep 10, 2024
…trieve-integration-credentials
…trieve-integration-credentials
This ensures imports from `autogpt_libs` are always in sync with the rest of the codebase. Without `develop = true`, the `autogpt-libs` dependency is cached, which may cause an old version of it to be imported into new code in e.g. `autogpt_server`, causing hard to debug issues.
Pwuts
force-pushed
the
kpczerwinski/open-1807-api-endpoints-to-retrieve-integration-credentials
branch
2 times, most recently
from
September 16, 2024 19:12
139b722
to
41589ca
Compare
…Response` And rename `Credentials.email` to `username`
Pwuts
force-pushed
the
kpczerwinski/open-1807-api-endpoints-to-retrieve-integration-credentials
branch
from
September 16, 2024 19:15
41589ca
to
a674693
Compare
Pwuts
force-pushed
the
kpczerwinski/open-1807-api-endpoints-to-retrieve-integration-credentials
branch
from
September 16, 2024 19:17
39899d9
to
584ed7c
Compare
Pwuts
approved these changes
Sep 17, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Pwuts
deleted the
kpczerwinski/open-1807-api-endpoints-to-retrieve-integration-credentials
branch
September 17, 2024 11:16
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.
Changes 🏗️
Add two endpoints to OAuth
integrations.py
:GET /integrations/{provider}/credentials
- list all credentials for a provider, without secrets (metadata only)GET /integrations/{provider}/credentials/{cred_id}
- retrieve a set of credentials (including secrets)Add
username
property toCredentials
typesusername
in OAuth handlersExpand
CredentialsMetaResponse
and removecredentials_
prefix from propertiesFix
autogpt_libs
dependency caching issueRemove accidentally duplicated OAuth handler files in
autogpt_server/integrations
PR Quality Scorecard ✨
+2 pts
+5 pts
+5 pts
+5 pts
-4 pts
+4 pts
+5 pts
-5 pts
agbenchmark
to verify that these changes do not regress performance?+10 pts