I have a server and i want to provide users an option to upload files to Google Drive. I tried with using pydrive, my code is the following:
from pydrive.auth import GoogleAuth
from pydrive.drive import GoogleDrive
gauth = GoogleAuth()
gauth.LocalWebserverAuth()
drive = GoogleDrive(gauth)
but when I send the OAuth link to other people they can't join because on their localhost:8080(the URI url) they have no local server. I am not 100% sure about this, but when they try to log in google says they can't reach localhost:8080, login works at the local server. I also tried with
from pydrive.auth import GoogleAuth
from pydrive.drive import GoogleDrive
gauth = GoogleAuth()
gauth.CommandLineAuth()
Using this I couldn't even get it to work on the server even though I set up the credentials as "desktop application" on the google console. Error was:redirect_uri: urn:ietf:wg:oauth:2.0:oob
when opening the OAuth link