Skip to content
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

Block UI elements to handle authorization #8005

Closed
Pwuts opened this issue Sep 5, 2024 — with Linear · 0 comments
Closed

Block UI elements to handle authorization #8005

Pwuts opened this issue Sep 5, 2024 — with Linear · 0 comments

Comments

Copy link
Member

Pwuts commented Sep 5, 2024

This ticket entails implementing the UI for both picking and initiating creation of new credentials.

For the block input component that handles the credentials, we'll need to add a new custom type of input. We can include info in the JSON schema like what kinds of credentials the provider supports, so that the block can offer an appropriate UI to enter e.g. either an API key or click a button to log in.

Currently supported types (source):

  • OAuth
  • API key

If no credentials for a given provider are configured yet, the credential input should present a button which:

  • if the provider supports multiple auth methods -> opens a modal where the user can click a login button or enter and save their API key
  • if the provider supports only OAuth -> directly initiates the log-in flow (Integration OAuth front end mechanism #8004)
  • if the provider supports only an API key -> opens a modal where a user can enter and save their API key

When an OAuth flow is completed successfully, the modal should close.

If credentials for a given provider are already available, the user should be offered a drop-down with options:

  • [Available Credentials 1]
  • [Available Credentials 2…n]
  • [+ Add account]

Clicking [+ Add account] will behave the same as the auth creation/initiation button described above.

@Pwuts Pwuts added Block A Block to be used in the AutoGPT Builder UI labels Sep 5, 2024 — with Linear
@linear linear bot closed this as completed Sep 19, 2024
@Pwuts Pwuts removed the Block A Block to be used in the AutoGPT Builder label Sep 25, 2024
@Pwuts Pwuts added Block A Block to be used in the AutoGPT Builder platform/blocks labels Sep 25, 2024 — with Linear
@Pwuts Pwuts removed the Block A Block to be used in the AutoGPT Builder label Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant