-
Notifications
You must be signed in to change notification settings - Fork 11
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
Could not get master token: NeedsBrowser #245
Comments
Test performed with the example code, to check at basis if
Any ideas @leikoilja 🤔 |
It's the same for me Logger: custom_components.google_home Logger: glocaltokens.client [!] Could not get master token. |
Same issue. If context helps, fresh/first install of HA/Google home addon today. Have ensured 2FA, SSL via Nabu Casa, using app password, and unlocked captcha 2022-05-25 20:50:56 DEBUG (MainThread) [glocaltokens.client] Set GLocalAuthenticationTokens client access_token, homegraph, access_token_date and homegraph_date to None
2022-05-25 20:50:56 DEBUG (MainThread) [glocaltokens.client] Set GLocalAuthenticationTokens client username to "t******************", password to "v***************", master_token to "" and android_id to
2022-05-25 20:50:56 DEBUG (SyncWorker_2) [glocaltokens.client] There is no stored master_token, logging in using username and password
2022-05-25 20:50:56 DEBUG (SyncWorker_2) [glocaltokens.client] There is no stored android_id, generating a new one
2022-05-25 20:50:56 DEBUG (SyncWorker_2) [glocaltokens.client] Generating android id...
2022-05-25 20:50:56 DEBUG (SyncWorker_2) [glocaltokens.client] Generated android id: 6ee92259b8d78d3a
2022-05-25 20:50:56 ERROR (SyncWorker_2) [glocaltokens.client] [!] Could not get master token.
2022-05-25 20:50:56 DEBUG (SyncWorker_2) [glocaltokens.client] Request response: {'Error': 'NeedsBrowser', 'Url': 'https://accounts.google.com/signin/continue?sarp=1&scc=1&continue=https://accounts.google.com/o/android/auth?<REDACTED AUTH DATA HERE>', 'ErrorDetail': 'To access your account, you must sign in on the web. Touch Next to start browser sign-in.'}
2022-05-25 20:50:56 ERROR (MainThread) [custom_components.google_home] ``` |
Same issue for me. |
same issue for me |
Encountering the same error too.
|
Same as the others - requiring web browser to sign in. |
I believe I am experiencing the same issue. I enabled the logger as instructed in the old issue. I wanted to try to help and tried to login to the url it provided in the log... unfortunately it just says "Please Wait". Hope this helps. Let me know if there is anything I should check or try. I don't have any of the integrations mentioned on the old issue. Stupid Idea, what if I disable 2FA, login, then re-enable 2FA?
|
Just trying to give ideas.. I haven't used this integration before. So I'm not sure if it was this way before it broke, but my other Google based services require you to put the info into the config and when they are sensed, they either pop up with a code and a link to the confirmation site or a persistent notification with the same thing. If you haven't, try taking a look at the code for auth on the Google Fit hacs repo or the Google Calendar integration (I don't know if you can see source code on built in integrations just wanted to try to help) |
I'm having also this problem, HA is installed on Truenas Scale as Truecharts app. |
@Pronown yeah, I believe this is the issue. This was working before, so something has changed on Google's side of authentication. Right now I'm totally out of time, but I will try on a fix for this ASAP. |
Hey, no rush, I just figured I'd offer any info I found. Extremely excited to expose these entities to my system. More sensors means more automations for me to dream up. I tried forcing the "browser" integration to load the url provided in the logs, to see if that would do it, apparently I can't get browser to run at all, nothing happened when I used their direct example to get to Google. - I'm guessing that's because the host machine is RPi 3B+ and I'm pretty sure unless I launch into the UI for the Debian package I'm running, it doesn't actually have a browser? I could be on the wrong track. As for something I can think of that may be causing 2FA Issues, I know I'm using Google Authenticator as well as a Bluetooth key. It may be freaked out that I have like 14 steps to log in.. |
@DirkTas67 |
@Pronown HomeAssistant is an app on the Truenas scale system, truenas scale is like a complete OS for NAS and has also apps, apps like Homeassistant, ESPHome, NodeRed, Mosquitto, Zigbee2mqtt..... and many many more |
So just to make sure, the issue "'Error': 'NeedsBrowser'" is being worked on right now? |
Update: The work is going on around in the underlying package We should spend all attention to fix it in |
Just for reference, the issue has been adressed at simon-weber/gpsoauth#42, now we only have to wait until a new release is published, @simon-weber says it gonna be quick, so let's hope 🤞🏼 |
Update: |
Thank you for the update; just installed the new version, restarted Homeassistant, installed the integration and added my gmail and app password and it works! Great! |
@DirkTas67 Hi, did you have the integration uninstalled and then installed 1.9.11 or did you update? I'm trying to find a difference in the process as 1.9.11 still doesn't work for me (and presumably whoever upvoted my post @ #528) |
Yeah, same here. Still a no go. Updated via HACS. Removing and reinstalling now. |
Same error with 1.9.11 |
Did you set up the integration on a desktop browser? I wonder if it because it's detecting an android user agent and that's why it's failing |
`Logger: glocaltokens.client [!] Could not get master token.` Still the same error. Unable to log in. But still facing the same error. |
@srappan Yes, at the desktop browser |
@hugalafutro No I just updated the integration I noticed when adding the integration in settings (not hacs) that it took a while for I could enter my email and app password, it was like it was doing something I also choose a new ''device' password |
For me too the same error: 2022-06-01 11:37:38 DEBUG (MainThread) [glocaltokens.client] Initializing new GLocalAuthenticationTokens instance.
2022-06-01 11:37:38 DEBUG (MainThread) [glocaltokens.client] Set GLocalAuthenticationTokens client access_token, homegraph, access_token_date and homegraph_date to None
2022-06-01 11:37:38 DEBUG (MainThread) [glocaltokens.client] Set GLocalAuthenticationTokens client username to "b************", password to "b***************", master_token to "" and android_id to
2022-06-01 11:37:38 DEBUG (SyncWorker_0) [glocaltokens.client] There is no stored master_token, logging in using username and password
2022-06-01 11:37:38 DEBUG (SyncWorker_0) [glocaltokens.client] There is no stored android_id, generating a new one
2022-06-01 11:37:38 DEBUG (SyncWorker_0) [glocaltokens.client] Generating android id...
2022-06-01 11:37:38 DEBUG (SyncWorker_0) [glocaltokens.client] Generated android id: 8a18675a7afa6051
2022-06-01 11:37:38 ERROR (SyncWorker_0) [glocaltokens.client] [!] Could not get master token.
2022-06-01 11:37:38 DEBUG (SyncWorker_0) [glocaltokens.client] Request response: {'Error': 'NeedsBrowser', 'Url': 'https://accounts.google.com/signin/continue?sarp=1&scc=1&continue=https://accounts.google.com/o/android/auth?hl%3Den_us%26xoauth_display_name%3DAndroid%2BLogin%2BService%26source%3DAndroid%2BLogin&plt=AKgnsbvEqZQYwofgrVil4Um2VtvO9qQcVWo1Njgc8VNvpILtIUuerp_udRNBDI25Owldd56rFtLx9HjT_Ej7GjDLCKE8ggxnfiFq7vWDNff4yIHC1ESnc7WkfI8qddfvxUd-us7XtGV-', 'ErrorDetail': 'To access your account, you must sign in on the web. Touch Next to start browser sign-in.'}
2022-06-01 11:37:38 ERROR (MainThread) [custom_components.google_home] Tried it both on desktop (Windows 11) and in the mobile app (Android 12). I also firstly updated the Google Home integration via HACS, didn't work. Then I deleted it completely and reinstalled the integration, but that didn't work either. |
Installed with updated with HACS via mobile- No go. 2FA set: If you try to load the url manually I has you log in, then just spins and says please wait or something like that. Curious why we aren't authenticating Google Home the same way Calendars and Fit are authenticated, or Google Keep? Most of us already have credentials saved in secrets for these services already. Keep has you do the App Password just like we're doing here, but instead of logging in through Settings, just a couple quick lines in config. Full disclosure, I know very little about coding, but I think this is their authorization process. |
Opsies, sorry, gents... |
I noticed you replied to this after you got the auth figured out, this was about the auth, we're good, sent this before it was figured out. Thank you for everything! |
cant log in i have the most current version of everything and its a fresh install of google home integration.
|
@KaijuKira86, since this issue got marked solved, please open a new issue and provide more details for us to be able to look into it |
Hello,
I have read the other issues with the same error than mine, but I couldn't resolve it.
I use the Google Home addon of Home Assistant, but the connection is refused.
I've tried to take off the protection methods to my google account too.
Here the log :
Edit: Of course, no pop-up opens.
The text was updated successfully, but these errors were encountered: