I have a Google service account that my server application can authenticate to. It works fine. I followed this: https://developers.google.com/identity/protocols/OAuth2ServiceAccount#authorizingrequests.
I want the users of my application to upload files to a Google Drive folder. My service account as access to this drive. I want to generate, on the server, a token that I can forward to my users (in the browser) so they can upload a file to the Drive's folder. (https://developers.google.com/identity/protocols/OAuth2ServiceAccount#authorizingrequests)
Is there a way I can generate a token for a one time upload or that would last a very limited period of time?
Note: I currently have a working prototype where I use a signed URL that my user's browser can post to (https://cloud.google.com/storage/docs/xml-api/post-object) that uploads in a Google Storage bucket.