I am using Google Drive SDK v3 to host files for our application. Access to uploading / downloading files is managed by the application, and a service account acts on behalf of users.
I am trying to provide a link to the user so they can download the file without authentication. Typically when a user goes to the webContentLink available in the file metadata they are requested to log in. Because I am using a service account to manage the files, I do not want them to have to log in. I would like to be able to provide a link for them to view / download the file while authenticated.
Previously, in v2 of the API this was easily done by attaching the access_token to the downloadUrl of the file. It appears as if this has been deprecated in v3 of the API, and attaching the access_token to the webContentLink does nothing.
Is this still achievable in v3 of the API, or is there some other architecture (perhaps google cloud storage) that I am supposed to be using to get this result?
I should mention that making the files public is not an option.
Any advice welcome, and thanks in advance!