We have an external folder that is being shared with us that we want to synchronize with using APIs.
I'm trying to figure out the best workflow to make this work.
I've tried:
- App Token: so this worked well in a test environment. I was able to share the folder with the "Login" of the app and was successfully reading the folder contents. The problem we ran into was when we asked that folder to be shared with our app, we found out that the company has Custom ToS and thus I was unable to accept those ToS on behalf of the app.
- JWT: unable to view contents that is not owned by the user I am impersonating (using as-user)
- OAuth: that works, but we would literally have to persist the token and refresh tokens
Isn't there a better workflow than this that has more longevity and does not need tokens to be refreshed?