djtimca / hagooglewifi

Home Assistant integration for Google Wifi systems.
Apache License 2.0
79 stars 26 forks source link

Tool for finding oauth token seems broken #55

Closed aaronsarna closed 2 years ago

aaronsarna commented 2 years ago

I tried following the instructions at https://www.angelod.com/onhubauthtool/ and also using the chrome extension, but, after logging in, both just end of taking me to https://accounts.google.com/embedded/close without showing me anything resembling an oauth token. Maybe something changed on the Google side?

ViPeR5000 commented 2 years ago

+1

ViPeR5000 commented 2 years ago

I tried following the instructions at https://www.angelod.com/onhubauthtool/ and also using the chrome extension, but, after logging in, both just end of taking me to https://accounts.google.com/embedded/close without showing me anything resembling an oauth token. Maybe something changed on the Google side?

use this https://chrome.google.com/webstore/detail/onhub-authorization-helpe/ecgfhpjmkenogpckhiimbnkkmjgmdnkp

aaronsarna commented 2 years ago

That was the chrome extension that I mentioned I had already tried, and it has the same problem as the manual method.

djtimca commented 2 years ago

I just tested the Chrome extension again and it is working as expected and returning a token.

aaronsarna commented 2 years ago

So what am I to make of the fact that it silently fails for me? Are there any debugging steps I can take? I am a software engineer, and have some familiarity with Chrome extensions and general web technologies, so I'm happy to do a deep dive, but I don't know where to start on this.

djtimca commented 2 years ago

Unfortunately I did not author that tool so I'm not sure of any steps to debug what's happening for you. I'm only aware of the two methods documented to get the required token. There has been a suggestion to add login to this integration which would generate the token automatically, but unfortunately I won't likely have time to look at it to enhance it for the forseeable future.

If anyone else wants to work to improve that part I'm happy to review and entertain pull requests, I just don't have time between my regular jobs to look at it right now and it's low on my HA list of priorities at the moment.

aaronsarna commented 2 years ago

Ok thanks. I opened https://github.com/AngeloD2022/onhubauthhelper/issues/1, so hopefully the extension author will have some ideas.

ViPeR5000 commented 2 years ago

I just tested the Chrome extension again and it is working as expected and returning a token.

work for me too today

aaronsarna commented 2 years ago

Seems to have been related to being logged into multiple Google accounts at once.