mui / toolpad

Toolpad: Full stack components and low-code builder for dashboards and internal apps.
https://mui.com/toolpad/
MIT License
964 stars 243 forks source link

Some frustrations trying to set up Google sheets datasource locally #375

Closed Janpot closed 2 years ago

Janpot commented 2 years ago
bharatkashyap commented 2 years ago
  • [ ] We will evolve to a system that doesn't contain sensitive data on the frontend in readable form. Which means that we won't get the value in readable form in the connection editor. We will add the execPrivate method to the input and call a connection test method to determine validity, in the backend it will acquire an access token to check whether the connection works and the user hasn't revoked the token.

Makes sense. Feels like we can convert this one to a separate issue (since removing the value prop from the connection params component is a broader change across datasources)

Janpot commented 2 years ago

We can start by making each datasource not depend on secrets in the ConnectionEditor, we don't necessarily have to do all at once in one PR. The current check for token validity is insufficient as it doesn't check whether the token has been revoked on the user side. We can solve both of these at once, independently of refactoring how datasources work with respect to secrets

Janpot commented 2 years ago

Ordering my thoughts around that in https://github.com/mui/mui-toolpad/issues/403