-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't authenticate - invalid redirect_uri #291
Comments
Hi, Google has deprecated this method of authentication for new signups. I'm in active discussion with their developer relations on a new approach. See home-assistant/core#67662 for more context |
The issue seems to now be resolved for home-assistant. Will the same fix work for this project? |
The reason it works with home assistant is because they have a http server endpoint to get the redirect url. Basically, you're own your own to get the auth credentials, and we'll likely need to delete the code for this in the command line tool. |
I'm a new user to this library and am also seeing this error. Does this mean we can't use this library until this is resolved? Are there any workarounds? |
You likely can't use the command line tool anymore with desktop auth. You can use web auth, but you have to write your own oauth integration to get the access token..or maybe you could use a service account. |
Probably the best next step for this is make the command line took work with a service account. |
I've been through the Client ID and project set up steps, and I'm trying to connect using the following command:
google_nest --project_id="${PROJECT_ID}" --client_id="${CLIENT_ID}" --client_secret="${CLIENT_SECRET}" list_structures
After navigating to the provided URL, I can log in OK but I get an error after selecting devices - complaining the redirect_uri is not valid for a Web Service.
I tried setting it up as a Desktop Application instead as suggested - but that didn't work either giving the following error:
The text was updated successfully, but these errors were encountered: