AutoGPT icon indicating copy to clipboard operation
AutoGPT copied to clipboard

feat(platform): List and revoke credentials in user profile

Open kcze opened this issue 5 months ago • 4 comments

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 in app/profile/page.tsx
  • Add revoke_tokens abstract method to BaseOAuthHandler 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 and notion providers at profile until implemented (added TODO)

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

kcze avatar Sep 27 '24 13:09 kcze