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
140 stars 17 forks source link

Paid google and the app is blocked #90

Closed YutaTheTraveler closed 1 year ago

YutaTheTraveler commented 1 year ago

Why is this app blocked? I feel extremely ripped off since I paid and waisted time and this app is blocked

YutaTheTraveler commented 1 year ago

Error 400: redirect_uri_mismatch

YutaTheTraveler commented 1 year ago

https://nestservices.google.com/partnerconnections/project-id/auth?redirect_uri=https://www.google.com&access_type=offline&prompt=consent&client_id=oauth2-client-id&response_type=code&scope=https://www.googleapis.com/auth/sdm.service

Unable to get an authorization code because this app is blocked

replacing with https://nestservices.google.com/partnerconnections/project-id/auth?redirect_uri=https://www.google.com&access_type=offline&prompt=consent&client_id=oauth2-client-id&response_type=code&scope=https://www.googleapis.com/auth/sdm.service+https://www.googleapis.com/auth/pubsub

still results in google blocking the app

potmat commented 1 year ago

Hi @YutaTheTraveler, this is not an "app" that Google can "block" in any sense. When you run this as a plugin on Homebridge YOU are creating the "app" and authorizing it through your own account. Please post a screenshot of what you see.

YutaTheTraveler commented 1 year ago

Hi @YutaTheTraveler, this is not an "app" that Google can "block" in any sense. When you run this as a plugin on Homebridge YOU are creating the "app" and authorizing it through your own account. Please post a screenshot of what you see.

Following this: https://developers.google.com/nest/device-access/authorize

YutaTheTraveler commented 1 year ago

https://ibb.co/8DhKXs7

Results in this

https://ibb.co/YTByJnp

YutaTheTraveler commented 1 year ago

Even manually creating a project in google cloud does not bypass app request being blocked

allenporter commented 1 year ago

You likely need to set the authorized redirect urls (e.g. like in https://developers.google.com/nest/device-access/get-started#set_up_google_cloud_platform)

YutaTheTraveler commented 1 year ago

You likely need to set the authorized redirect urls (e.g. like in https://developers.google.com/nest/device-access/get-started#set_up_google_cloud_platform)

‘I’ve done these steps with the oauth given there and one setup in google cloud

YutaTheTraveler commented 1 year ago

Added accounts.google.com and googleapis.com as authorized redirect Uris

YutaTheTraveler commented 1 year ago

Added accounts.google.com and googleapis.com as authorized redirect Uris

This seems to have fixed the issue

potmat commented 1 year ago

Thank you for your help @allenporter!