Brandawg93 / homebridge-nest-cam

View your Nest cams in HomeKit using Homebridge.
https://www.npmjs.com/package/homebridge-nest-cam
GNU General Public License v3.0
211 stars 27 forks source link

[Bug]: Google oauth2 fails after Google password change #532

Closed stulevine closed 1 year ago

stulevine commented 1 year ago

Describe the bug

After changing my Google password, the refresh token I was using no long worked (makes sense). And, when I tried to use the UI to login using Google, and the manual methods mentioned in the wiki, all methods failed and I received the following response from Google Auth:

Access blocked: Nest’s request is invalid

You can’t sign in because Nest sent an invalid request. You can try again later, or contact the [developer](https://github.com/Brandawg93/homebridge-nest-cam/issues/new?assignees=&labels=bug&template=bug_report.yml&title=%5BBug%5D%3A+) about this issue. [Learn more about this error](https://support.google.com/accounts/answer/12379384)
If you are a developer of Nest, see [error details](https://github.com/Brandawg93/homebridge-nest-cam/issues/new?assignees=&labels=bug&template=bug_report.yml&title=%5BBug%5D%3A+).
Error 400: invalid_request

See screen shot below. A1845E4B-A4FF-4898-B44E-0EF3583A1A07

Debug Output

Don’t really have any since the url is produced by the login.js file. It’s just not the correct format or is missing data expected by Google Auth.

Steps to reproduce

  1. Change your google password
  2. Attempt to re-authenticate Nest with Google to get the plugin to access your Nest Cams.

Device Type

Raspberry Pi

iOS Version

Not an iOS issue

Camera Types

Nest Cam

Bug Persistence

Consistently

Last Working Version

No response

dvltav commented 1 year ago

I have the same issue, but I'm doing new setup. I've tried the command line: homebridge-nest-cam login and the GUI, same result.

quinnerator commented 1 year ago

Same issue as well

quinnerator commented 1 year ago

Same issue as well

I’ve tried the cookie method and so far, so good for the non nest cam integration.

topher-black commented 1 year ago

I have the same issue, but I'm doing new setup. I've tried the command line: homebridge-nest-cam login and the GUI, same result.

Same situation here with a new setup, Mac Mini Monterey OS. The UI and terminal command both fail with the same 400 error.

13Hemi commented 1 year ago

Same issue here on a new install

cstephe commented 1 year ago

same

himerus commented 1 year ago

Getting Nest hooked into Homekit was one of my primary reasons for Homebridge, and this plugin, please advise on this issue!

13Hemi commented 1 year ago

I managed to get it working a different way using the details in this issue

cstephe commented 1 year ago

@13Hemi I'm pretty sure that is only a temporary solution, I think that will expire eventually. Maybe I'm reading that issue's comments wrong.

chrisrobert commented 1 year ago

I was having this issue and was able to solve it (at least for now) with this code: https://github.com/Brandawg93/homebridge-nest-cam/issues/516#issuecomment-1326679188_

Using the same inputs from the homebridge-nest plugin.

jradwan commented 1 year ago

Argh, just ran into this myself today. Off to investigate the suggested links above. :)

zuhairmahd commented 1 year ago

So the auth2 is failing on the plugin's settings screen. Could it be related to Google stopping the use of the Out Of band auth flow? The cookie method definitely does not work for the nest-cam plugin, though strangely enough it works for the nest plugin.

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 3 days