I'm creating a desktop application in C# that will act as a backup program. What I want to do is allow a user to create a schedule for when a backup should happen. I created a windows service that runs in the background that will run based on this schedule.
Right now, my program will copy files that the user has selected to another local user-selected folder. However, I want to extend this to allow users to backup their files to the cloud on a scheduled basis, specifically, their Google Drive account.
I'm not sure if this is possible, though, or how to go about it. I've got code working that will upload files to a Drive account, however, that requires the user to grant permission to my program each and every time it runs. My question is, how can I accomplish this to be done automatically? Is there a way to have a user enter his login credentials once and then allow the program to access their Drive account automatically thereafter, without them having to grant permission every time?