At the moment, it is possible to set the permission scope for Google Drive access during configuration. However, it appears this has not yet been implemented for OneDrive. Would it be possible to add scope configuration for OneDrive as well?
This request is analogous to this request except for OneDrive instead of Google Drive. This is useful for contexts where one would like to leverage a large capacity of OneDrive storage for an application or research purpose without exposing the account's entire drive, which might contain sensitive information. This could be implemented by granting only app-specific storage in OneDrive (Files.ReadWrite.AppFolder). Although I realize the authentication token lives client-side, I'd like to minimize exposure to potential exfiltration from the drive outside of the scope of the rclone use case in the event that the device is compromised.
I conducted a search of the GitHub repository and this forum and did not see a previous request; apologies beforehand if I missed something.
Thank you for your reply! Yes, this feature request would be to configure those scopes.
AppFolder scope in OneDrive is very much like the AppData scope in Google Drive except the contents remain readable/writable by the user through the regular user interface, so it is not invisible. There is some overlap in use cases with drive.file permissions in Google Drive (in the sense of limited read/write permissions to a drive with the files still being accessible by the user interface).
The App Folder is a dedicated, special folder for your app. The App Folder is typically named after your app, and is found in the Apps folder in the user's OneDrive. If you request the Files.ReadWrite.AppFolder permission scope and the user authorizes it, your app gets read and write access to this folder. Since it behaves like any other folder in the user's OneDrive, users can add, modify, and remove content from it. Your app doesn't need to maintain logic unique to the user, which allows the user to rename or move it. (source)
Sounds great, I have created a GitHub feature request here.
I'm not very familiar with Go, to be honest; I would be hesitant to put production-level Go software in my hands, unless you would prefer that I contribute.
If you'd like to have a go I'd be very happy to help you out. This is nearly all about configuration and it should be possible to copy the Google drive code.