I am looking to add Dropbox access to a locally run utility in house. In other words, this project will never ship to other users and more simply it will never need to be accessed with user interaction. (It will just be selectively enumerating the storage for a known user in the team space) In the SwiftyDropbox README it says: "Once you've created an app, you can go to the App Console and manually generate an access token to authorize your app to access your own Dropbox account. Otherwise, you can obtain an OAuth token programmatically using the SDK's pre-defined auth flow. For more information, see below." So, I am assuming I could get away with just using the manually generated token. Yes? Would that persist indefinitely? Since this is not going to ship I am not worried about internal token exposure from a security standpoint. Ideally it would be running on a server without the Dropbox client installed. (At the moment the utility is written to enumerate the Dropbox space on disk)
I am also assuming I do not need to modify the .plist since I am not going to use the pre-defined auth flow. Would that be a valid assumption? Speaking of the Generated access token. After I create it on the App Console it is not there when I return to the page later. Is that normal behavior? I have attempted to click the submit button to save the state but that doesn't seem to change this observation.
In the end I would like help with the minimal path to get to something like:
client.files.listFolder(path: "")
Where client is a valid result of using the SDK and a Generated access token without going through the pre-defined auth flow.