alangrainger / obsidian-google-photos

Connect to Google Photos from Obsidian
GNU General Public License v3.0
93 stars 5 forks source link

Authorization Error #22

Closed EkanshdeepGupta closed 11 months ago

EkanshdeepGupta commented 12 months ago

Hi, I added Authorized redirect URIs. I put the following link: https://alangrainger.github.io/obsidian-google-auth-proxy/?handler=google-photos

However in Obsidian when I click 'Open Photos API Auth', I get the following Authorization Error.

Screenshot from 2023-09-17 17-18-16

I do not fully understand the mechanics of how this works, can you help me figure this out? This might have something to do with the 'OAuth consent screen' step of the setup which is not well-documented in this repo.

alangrainger commented 12 months ago

Can you please confirm you have version 1.6.0 of the plugin? If you've recently upgraded, please restart Obsidian to be safe.

EkanshdeepGupta commented 12 months ago

No I wasn't, thanks a lot! I just updated the plugin. This issue seems to have gone away, but now I am facing a different error message:

image

Do you know what might be happening?

EkanshdeepGupta commented 12 months ago

Clicking on error details opens a pop-up with the following text:

Error 403: access_denied
Request details: access_type=offline response_type=code state=state_parameter_passthrough_value redirect_uri=https://alangrainger.github.io/obsidian-google-auth-proxy/?handler=google-photos include_granted_scopes=true client_id=405324060769-4o6f6m8bboco4bq01rmgskgngaqh8mkg.apps.googleusercontent.com scope=https://www.googleapis.com/auth/photoslibrary.readonly 

with a link to the following: Related Developed Documentation

alangrainger commented 11 months ago

Documentation has now been updated to match the new Google API setup process.

Please update the plugin to 1.6.2 and follow the updated docs here:

https://github.com/alangrainger/obsidian-google-photos/blob/main/docs/Setup.md

EkanshdeepGupta commented 11 months ago

GREAT. Now it works beautifully! Thanks a lot for putting in the effort, much appreciated :)