-
Notifications
You must be signed in to change notification settings - Fork 3
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
Login failed with "{'Error': 'BadAuthentication'}" #14
Comments
I already was pretty certain, that I frequently deleted and re-added the integration during development, but to be extra safe, I just removed and added the integration three times without any issues (with different app passwords). I guess this issue related to your general connection problems with this integration #11. |
It looks like it is related, just not sure which is causing which. I managed to set something up locally and I am getting back {'Error': 'BadAuthentication'} from the get_master_token call. Based on the open issues in gpsoauth it looks like this is something that has come up periodically and nobody has nailed down where it comes from. Going to try a few other things to see if I can't diagnose options. |
Upstream issues: |
I am also unable to login with my apppassword and tried multiple things. EDIT: I came up with a quick way of bypassing the problem. Maybe you find the pull request useful: #16 |
I'm having the same issue but it's not clear how to obtain the master token |
Sorry, I totally neglected that part, since I was a bit familiar with that part from the past. |
Sure, make a PR for the readme, if you want, to explain the situation a bit better. |
Thanks, I have it working by retrieving a master token with this script! :D apk add gcc Not sure if relevant, but here is my configuration: |
Since my authentication code and the linked script are almost identical, I suspect, that maybe the I noticed this, when I saw @QkulleQ is running Hassio, which means Home-Assistant is running in docker (where Maybe @Edo78, @SoulEater45 and @djtimca could also post their setups? Primarily operating system and if they use any containerization? Running the script on a different system (or not in a container) would in those cases result in another ID, which would explain, why the workaround with the script is generating a usable master_token, while the integration fails to do so automatically. |
I am running Supervised Docker on Ubuntu 20.04 |
I'm on a docker installation of HA Core |
I am running HassOS on a Raspberry Pi 4 |
Alright, so we have only docker instances so far with this problem, which is a strong indication for my theory. I will try to work on an alternative authentication method / id generation. Maybe that will fix the problem. Be sure to subscribe to this issue, if you want to help with testing. |
I am facing this issue as well and also run HA Core in Docker. |
I also got failed login when inputting my Google account UN and using a generated app password. I ended up having to use that script to get a Master Token. Because I was running the script from my Ubuntu server I had to install the app "Device ID" on my phone to get a device ID and also input that within the python script. Got the Master Token and put that in along with the username and app password. It worked. |
It looks like a new version of gpsoauth is out with some fixes that might help here. Latest seems to be 0.4.3, while 0.4.1 is in the manifest. |
Thanks for the heads-up! Those are some good news, I will release a patch version with a bumped gpsoauth-version-requirement soon. Hopefully this issue will be solved then for good. (I will of course leave the workaround working until this is confirmed.) |
I removed the integration from Home Assistant as part of testing of my other issue, but when I go back to reinstall / configure the integration again I get a Login filed error in the UI.
I have created a new App Password and it still doesn't work.
I assume some credentials may be cached from a previous installation?
The text was updated successfully, but these errors were encountered: