gilesknap / gphotos-sync

Google Photos and Albums backup with Google Photos Library API
Apache License 2.0
2.02k stars 165 forks source link

GooglePhotosSync OAuth Flow issue #380

Closed brianbgarber closed 2 years ago

brianbgarber commented 2 years ago

I was able to follow the tutorial all the way to the point of the Google sign in screen. After checking all the boxes and hitting 'Continue', my browser tries to redirect to localhost.

When I run the sync command, I see a url that starts with this...https://accounts.google.com/o/oauth2/auth?response_ but in that same link there is this apps.googleusercontent.com&redirect_uri=http%3A%2F%2Flocalhost%3A8080 and so when I authenticate in Google, I'm redirected back to localhost:8080 and the gphotos-sync /storage command does not finish.

Running a just updated version on Unraid 6.10.3

Any thoughts?

Thanks, Brian

Arn0uDz commented 2 years ago

Having the same issue.

brianbgarber commented 2 years ago

Got it. I ended up installing the Python version on Windows. Once I was able to authenticate in Google I received the .gphotos.token file. Place that file in the place where /storage points to in the Unraid docker and you are golden.

Iceman248 commented 1 year ago

How exactly did you solve this? I'm stuck here, too, but I have no idea where you are coming from with the "installing the Python version on Windows". Thanks.

gilesknap commented 1 year ago

@Iceman248 what you need to do is install gphotos-sync on a workstation where you can also run a browser to do the initial authentication. Then you can copy over the token that gets generated to your server.

Hopefully this describes how to do it https://gilesknap.github.io/gphotos-sync/main/tutorials/installation.html#headless-gphotos-sync-servers

Iceman248 commented 1 year ago

@Iceman248 what you need to do is install gphotos-sync on a workstation where you can also run a browser to do the initial authentication. Then you can copy over the token that gets generated to your server.

Hopefully this describes how to do it https://gilesknap.github.io/gphotos-sync/main/tutorials/installation.html#headless-gphotos-sync-servers

Thanks, I had figured it out from that, just now get it going on unRAID after having to regenerate token.