potmat / homebridge-google-nest-sdm

A Homebridge plugin for Google Nest devices that uses the Google Smart Device Management API. Supports Cameras, Doorbells, Displays, and Thermostats. Includes support for HomeKit Secure Video.
ISC License
148 stars 17 forks source link

Cannot figure out how to resolve "Error 400: redirect_uri_mismatch" #117

Closed dadsalleb closed 11 months ago

dadsalleb commented 11 months ago

Hello, I'm creating google API and related stuff but I'm getting Error 400: redirect_uri_mismatch error. image

I tried both links by replacing PROJECT_ID and CLIENT_ID with my information. but no luck.

https://nestservices.google.com/partnerconnections/PROJECT_ID/auth?redirect_uri=https://www.google.com&access_type=offline&prompt=consent&client_id=CLIENT_ID&response_type=code&scope=https://www.googleapis.com/auth/sdm.service+https://www.googleapis.com/auth/pubsub

https://nestservices.google.com/partnerconnections/PROJECT_ID/auth?redirect_uri=https://www.google.com&access_type=offline&prompt=consent&client_id=CLIENT_ID&response_type=code&scope=https://www.googleapis.com/auth/sdm.service

I also tried to add some domains to Authorized domains list (as suggested in #66) but it didn't help. image

Any other suggestions..?

dadsalleb commented 11 months ago

Some people recommended adding www.google.com to Authorized redirect URIs but I can't find it with the recent web pages. It may be updated?.. image image

dadsalleb commented 11 months ago

Changing the application to Web instead of TV resolved this issue. Closing.