Praqma / GSheets2TBoards

Small python script to convert a google sheet to a Trello board
MIT License
0 stars 0 forks source link

Google Sheets API does not accept authorization when local server running #14

Closed timea closed 7 years ago

timea commented 7 years ago

I had a go server (and webpack) running locally. After I approved our script to access the Google Sheet, it routed me to my localhost, extending my locally running app's base URL instead of arriving to Trello's approval page.

I got the following error message

Your browser has been opened to visit:

    https://accounts.google.com/o/oauth2/auth?client_id=565384100376-td8kmvmue27mbi2toe0tnup4hpkdgulp.apps.googleusercontent.com&redirect_uri=http%3A%2F%2Flocalhost%3A8080%2F&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fspreadsheets.readonly&access_type=offline&response_type=code

If your browser is on a different machine then exit and re-run this
application with the command-line parameter

  --noauth_local_webserver
timea commented 7 years ago

After stopping my local server and proper approval I could not reproduce the error.

timea commented 7 years ago

Since we are running the script with docker, this will not be an issue. There will never be a localhost running anything else inside a container.