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 1 year 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

Deploy Preview for auto-gpt-docs canceled.

Name Link
Latest commit f930bf97897b1a98842148590488bd14a31c98c1
Latest deploy log https://app.netlify.com/sites/auto-gpt-docs/deploys/66f6b7db7d1d120008147f81

netlify[bot] avatar Sep 27 '24 13:09 netlify[bot]

Deploy Preview for auto-gpt-docs canceled.

Name Link
Latest commit 042e09892d1c6efbb693d38fe1917e888ef24b85
Latest deploy log https://app.netlify.com/sites/auto-gpt-docs/deploys/670d3246a55fee0008cf04c4

netlify[bot] avatar Sep 27 '24 13:09 netlify[bot]

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Sep 30 '24 11:09 CLAassistant

This pull request has conflicts with the base branch, please resolve those so we can evaluate the pull request.

github-actions[bot] avatar Oct 03 '24 16:10 github-actions[bot]

Conflicts have been resolved! 🎉 A maintainer will review the pull request shortly.

github-actions[bot] avatar Oct 10 '24 19:10 github-actions[bot]

is this what it's supposed to look like? image

Pwuts avatar Oct 10 '24 19:10 Pwuts

image

Pwuts avatar Oct 11 '24 19:10 Pwuts

image

Pwuts avatar Oct 12 '24 15:10 Pwuts