andresoviedo / google-drive-ftp-adapter

Google Drive FTP Adapter to connect to google drive through the FTP protocol
GNU Lesser General Public License v3.0
395 stars 93 forks source link

Non-interactive authorization with Google OAuth2 #59

Open ektorasdj opened 12 months ago

ektorasdj commented 12 months ago

Hello everyone, following @oddmario solution i was able to make the app work with my google account. The problem right now is that i want it to run in a server environment without gui or browser access. The problem is i am not able to open the authorization link. Is it possible to set up a non-interactive authorization with google's api service account? If yes can anyone help me with the steps that need to be taken? Thank you

AnonGhostID commented 7 months ago

I assume you have SSH access to your server, then you just need to use Windows Terminal. First after opening the jar files you get the link right? Open the link in your browser (windows).

After granting access, copy the http://localhost:9999/?code=xxx_xxx link. Then back to your SSH, use curl command.

curl http://localhost:6969/?code=xxx_xxx_xxx