-
Notifications
You must be signed in to change notification settings - Fork 73
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 login - 'Error': 'BadAuthentication' #95
Comments
Yes it is, Username/Email should be If you have Two Factor Authentication enabled. I think you can only use an |
Can you please check the logs in Home Assistant. You can find them under |
@hugostegeman if you are using a Gmail account, try logging it without adding |
I tried it with and without @gmail.com but i still cant login.
|
Which version of Home Assistant are you using? Please try to remove it and reinstalled it again. It seems there is an issue with its name here: 2021-03-19 13:40:28 WARNING (MainThread) [homeassistant.loader] You are using a custom integration googlehome which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2021-03-19 13:40:28 WARNING (MainThread) [homeassistant.loader] No 'version' key in the manifest file for custom integration 'googlehome'. This will not be allowed in a future version of Home Assistant. Please report this to the maintainer of 'googlehome' <- Problem here. Is name should be google_home. Also please use code blocks when embedding logs. Markdown Guide |
@hugostegeman The integration is not named googlehome, but google_home. The underscore is important. Are you installing it through HACS? If so please uninstall it and then remove the repository in HACS and re-add it and try installing it again. |
I installed it by using hacs and even after removing en reinstalling i cant login. |
I don't think it matters which country you are in as long as the Google sells it devices in that country it should be supported. You can try, but i doubt it will change any thing as installing through HACS always gives you the latest version. Can you please try adding this to your logger:
default: info
logs:
# log level for mielelogic_laundry
custom_components.google_home: debug And then post back the logs. This will enabled a lot more information in the logs and will give os a clearer understanding of why it does not work. |
Hi, Logger set to: logger:
default: debug
logs:
# log level for mielelogic_laundry
custom_components.google_home: debug In logs only:
|
When have you installed this integration? Can you also add: logger:
default: info
logs:
custom_components.google_home: debug
glocaltokens: debug <- Add this line This will enable logs for the underlaying package EDIT: Also please use code blocks when pasting your log into the issue 😄 |
Still the same. Debug level changed.
|
@ArnyminerZ @leikoilja Any ideas on what could cause this? Besides not using the latest version, where it should have been fixed? |
Core Supervisor
Nothing more is showing in logs: I'm trying to use this because Drakulix/googlehome not showing me correct values but it's connected. |
@WRLPDZ Can you please remove |
All integrations corelated wit google home uninstalled. |
I'm pretty sure there's an issue with @hugostegeman Home Assistant's database, and maybe that's the issue, but since @WRLPDZ has the same issue, maybe there's something more there... Also, @WRLPDZ are you sure there aren't any more logs regarding the integration in your Home Assistant's register? @DurgNomis-drol @leikoilja maybe we should add more debugging to |
Great call, @ArnyminerZ, thank you! 💥 |
I have the same issue. Just installed this via HACS, but can't log in. In log I only see:
I'm too using 2FA with an app password specific for this extension. Further I've configured google assistant without nabu casa. |
Hi, @cs42, thank you for the information. We are currently working on this issue, you can follow the progress at glocaltokens#48. Also, please, use code blocks for logs, not blockquotes. 😇 |
@cs42, @bacco007, there is now a new release of the integration. logger:
default: info
logs:
custom_components.google_home: debug That will now print much more elaborate logs. Please post them here (IMPORTANT make sure not to paste your sensitive info here as |
Here are the logs:
I have a 2FA setup and created a new app password for this test. |
I was watching this because I was experiencing the very same issue. I have a 2FA and I can't login with my username and the generated app password. I just updated to 1.0.1, add the logger to the config and now I can login and I can't understand why. If I can provide any more info or if you need any tests at all feel free to ask and I'll be glad to help |
ha-google-home 1.01
Home Assistant OS 5.12
Here's my log to add to the fire. ;) I am trying to login using an app password. 2021-03-25 08:42:35 WARNING (MainThread) [homeassistant.loader] You are using a custom integration google_home which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2021-03-25 08:42:35 INFO (SyncWorker_19) [homeassistant.util.package] Attempting install of glocaltokens==0.2.6
2021-03-25 08:43:15 DEBUG (MainThread) [glocaltokens.client] Initializing new GLocalAuthenticationTokens instance.
2021-03-25 08:43:15 DEBUG (MainThread) [glocaltokens.client] Set self username to "b******************", password to "g***************", master_token to "" and android_id to
2021-03-25 08:43:15 DEBUG (MainThread) [glocaltokens.client] Set self access_token, homegraph, access_token_date and homegraph_date to None
2021-03-25 08:43:15 DEBUG (SyncWorker_25) [glocaltokens.client] There is not any stored master_token, logging in...
2021-03-25 08:43:15 DEBUG (SyncWorker_25) [glocaltokens.client] There is not any stored android_id, generating a new one
2021-03-25 08:43:15 DEBUG (SyncWorker_25) [glocaltokens.client] Generating mac...
2021-03-25 08:43:15 DEBUG (SyncWorker_25) [glocaltokens.client] Generated mac: E0400A08AB5949
2021-03-25 08:43:15 ERROR (SyncWorker_25) [glocaltokens.client] [!] Could not get master token.
2021-03-25 08:43:15 DEBUG (SyncWorker_25) [glocaltokens.client] Request response: {'Error': 'BadAuthentication'}
2021-03-25 08:43:15 ERROR (MainThread) [custom_components.google_home] For good measure I also deleted yesterday's app password, and generated a new one. 2021-03-25 08:50:14 DEBUG (MainThread) [glocaltokens.client] Initializing new GLocalAuthenticationTokens instance.
2021-03-25 08:50:14 DEBUG (MainThread) [glocaltokens.client] Set self username to "b******************", password to "n***************", master_token to "" and android_id to
2021-03-25 08:50:14 DEBUG (MainThread) [glocaltokens.client] Set self access_token, homegraph, access_token_date and homegraph_date to None
2021-03-25 08:50:14 DEBUG (SyncWorker_17) [glocaltokens.client] There is not any stored master_token, logging in...
2021-03-25 08:50:14 DEBUG (SyncWorker_17) [glocaltokens.client] There is not any stored android_id, generating a new one
2021-03-25 08:50:14 DEBUG (SyncWorker_17) [glocaltokens.client] Generating mac...
2021-03-25 08:50:14 DEBUG (SyncWorker_17) [glocaltokens.client] Generated mac: 33FF090A894B45
2021-03-25 08:50:14 ERROR (SyncWorker_17) [glocaltokens.client] [!] Could not get master token.
2021-03-25 08:50:14 DEBUG (SyncWorker_17) [glocaltokens.client] Request response: {'Error': 'BadAuthentication'}
2021-03-25 08:50:14 ERROR (MainThread) [custom_components.google_home] |
Related logging tips:
|
I'm having the same issue |
Yay!
After submitting login and app password, the configuration window gets
crazy and starts to resize itself about 10 times per second and it goes on
for 30 seconds. After that, the integration is added successfully :-)
|
@joggs, it's a funny behaviour but i m pretty sure not caused from |
@joggs, sorry, i'll remove your messages since they are not related to |
I also have an LG Smartthinq Custom Component installed. I was successfull with authenticating the Google Home integration today, after the recent LG Smartthinq update. (Was there a conflicting verison of a requirement?) Anyway, I'm looking forward to exploring it today. :) |
Same behaviour here. Tested seting up the Google Home integration unsuccessfully just before updating smartthinq. After updating and a reboot, the setup of Google Home completed without a hitch :) |
@leikoilja I think maybe add to the readme under troubleshooting login problems ensure if your using the LG smartthinq custom component that the version is 0.6.7 or newer. |
@stboch, we have just added a remark to the troubleshooting section to refer to this issue if someone still gets |
Ok, I'm closing this. Actions we've taken to remediate this:
Please update to 1.3.0 where this should be solved. |
I just installed the integration but I have the same issue. Integration version 1.9.10 Multifactor enabled with app password. This is what I get on logs with debug enabled: 2022-05-19 21:41:03 DEBUG (MainThread) [glocaltokens.client] Initializing new GLocalAuthenticationTokens instance.
2022-05-19 21:41:03 DEBUG (MainThread) [glocaltokens.client] Set GLocalAuthenticationTokens client access_token, homegraph, access_token_date and homegraph_date to None
2022-05-19 21:41:03 DEBUG (MainThread) [glocaltokens.client] Set GLocalAuthenticationTokens client username to "a***********************", password to "r***************", master_token to "" and android_id to
2022-05-19 21:41:03 DEBUG (SyncWorker_22) [glocaltokens.client] There is no stored master_token, logging in using username and password
2022-05-19 21:41:03 DEBUG (SyncWorker_22) [glocaltokens.client] There is no stored android_id, generating a new one
2022-05-19 21:41:03 DEBUG (SyncWorker_22) [glocaltokens.client] Generating android id...
2022-05-19 21:41:03 DEBUG (SyncWorker_22) [glocaltokens.client] Generated android id: eb89dc38eabe277b
2022-05-19 21:41:03 ERROR (SyncWorker_22) [glocaltokens.client] [!] Could not get master token.
2022-05-19 21:41:03 DEBUG (SyncWorker_22) [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=AKgnsbsDJKWaUmGA7j9ZQgmP21WBsuifozeb2bYmmZzbwe7DG54J4FJL5qFRuxh-rLsByr-YBgeMTMSgj15nDZQITNbpAJbjQSZBp2yUgG7EC8eS2IBjvg3Cyv4RdTjWdsRl1XAyvsuv', 'ErrorDetail': 'To access your account, you must sign in on the web. Touch Next to start browser sign-in.'}
2022-05-19 21:41:03 ERROR (MainThread) [custom_components.google_home] To access your account you must sign in on the web but I don't see any Next on the integration to login. |
@agarbato this issue has been detected, and it is being addressed at leikoilja/glocaltokens#245. |
It looks like the We just need to update that package to @ArnyminerZ / @leikoilja are you able to assist in releasing a new version? Thanks! |
yep, i was in the middle of doing so, @adam91holt, but some things got on the way :) Will do it tomorrow morning and then update you here as well :) |
Beautiful! Thanks for your hard work @leikoilja 🚀🚀🚀 |
Fixed in Please update to the latest version and verify it works :) |
Don't know if I'm missing something, but I still get the error 'needsbrowser' afer updating |
@Neolanco have you rebooted HA? |
Yes, I've also reinstalled the integration |
Same here. Updated, restarted HA, restarted VM but still get the same exact error. If you need me to do some tests or provide info about my env I'm happy to help. Home Assistant Core 2022.5.5 |
Same here - have tested gpsoauth 1.0.1/1.0.2 using this and still can't generate a master token using app password. |
with v1.9.12 it's fixed for me! Thanks a lot for your effort :-) |
Just updated, I'm recieving a ValueError that 'plaintext is too long'. My email address is 34 characters long lol 😅 Used my main account and it works, but I'd prefer (as you recommend) to use an alt. For now I'll just make another account but figured I should mention this, |
haha, thanks for mentioning it @RaddedMC. |
@leikoilja yeah, the check should not be complicated, we have already done that for long passwords. |
Hi, I had this working but I uninstalled it and I have reinstalled it after a while, I can't log in. I have created an app password, but I get errors. I'm on: I got this on the Log: Este error se originó a partir de una integración personalizada.
And this:
And on the full log:
|
hi,
I cant login with my google account.
is the google username the same as your google account .......@gmail.com?
The text was updated successfully, but these errors were encountered: