Closed ggonmar closed 1 year ago
Could you check if your oAuth client looks something like this (especially Authorized redirect urls):
Note that you must use the my.home-assistant.io
url.
Hello, I had the same thing, you should verify if you didn't had entered wrongs credentials previously. here : https://my.home-assistant.io/redirect/application_credentials/ (it's the link written in the FAQ). You will see all your different credentials on the page, if you see 1 "google photo", delete it and re-start the integration of the plugin. Hope this will help you. -->Mike
same is happening to me
@Zeunas You have the correct redirect_uri set to my.home-assistant.io
?
I do, I actually tried the credentials on another HA instance and that one is working. Both instances are on the same version of HAOS, the only difference is that one is on a Rasp pi3 and the other is on a Rasp pi4, the integration is working on the latter.
Hmm, might be a cached api key then. Try to remove the credentials that are set for Google Photos on this page: https://my.home-assistant.io/redirect/application_credentials/ (on the pi3 of course) and then reconfigure the integration.
I did that a couple of times already but got the same results. One thing I didn't say actually, was that this integration was initially set up on the pi4, then I decided to move to the pi3. I tried using the same credentials that I used for the pi4 and it didn't work, then I deleted the OAuth 2.0 Client ID and recreated again following the instructions on here, that didn't work either (this new Client ID is the one that still works on the pi4). So not sure if I compromised the authentication of pi3 somehow by using pi4 initial in the first place.
Seems like I was too careless to follow the complete guide and I skipped the part where I was supposed to add the whitelisted URI :) it's all working now! Thanks!
When trying to set up the integration on my HA, I search under "Add Integration" for "Google Photos", I inputted my oauth credentials, and then a popup appears from google saying that there was a Error 400: redirect_uri_mismatch.
Am I doing something wrong?
Thank you!