AutoGPT
AutoGPT copied to clipboard
feat(platform): List and revoke credentials in user profile
Background
Follow up to https://github.com/Significant-Gravitas/AutoGPT/pull/8044 Resolves:
- https://github.com/Significant-Gravitas/AutoGPT/issues/7823
- https://github.com/Significant-Gravitas/AutoGPT/issues/7824
Changes 🏗️
Display existing credentials (OAuth and API keys) for all current providers: Google, Github, Notion and allow user to remove them (OAuth is also revoked at providers for Google and GitHub).
- Add credentials list and
Remove
button inapp/profile/page.tsx
- Add
revoke_tokens
abstract method toBaseOAuthHandler
and implement it in each provider - Revoke OAuth tokens for providers on
DELETE
/{provider}/credentials/{cred_id}
- Update
autogpt-server-api/baseClient.ts:_request
to properly handle empty server responses - Ignore
google
andnotion
providers at profile until implemented (addedTODO
)
Testing 🔍
[!NOTE] Only for the new autogpt platform, currently in autogpt_platform/
- Create from scratch and execute an agent with at least 3 blocks
- Import an agent from file upload, and confirm it executes correctly
- Upload agent to marketplace
- Import an agent from marketplace and confirm it executes correctly
- Edit an agent from monitor, and confirm it executes correctly