-
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
App Password Errors #205
Comments
Have you tried using full address as a login? |
I also am having this same problem using the script in the "security recommendation" section of the readme.
I can't figure out how to enable the verbose or debug options I see in the source code. |
Can you try this script and add |
I figured out the issue. There seems to be some compatability issues with newer versions of Python (specifically the requests module). I used Python 3.5.9 in a docker container (not needed just was easier than installing another version of Python on my computer) and was able to retrieve both tokens successfully. I was getting a BadAuthentication error as the response from google. I then just used the master token instead of username/password on Python 3.9 and the rest of the module works fine. Seems to be an issue with user agent handling on googles end.
Brandon Wees
…On Dec 13, 2021, 8:11 AM -0500, Ruslan Sayfutdinov ***@***.***>, wrote:
Are you using this script? https://gist.github.com/rithvikvibhu/952f83ea656c6782fbd0f1645059055d
Can you add print(res) after line 26?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
I had tried that first, since that was what I was going for. Changing line 18 to DEBUG=True enables the print(res) on line 24, and I get:
|
|
It could be related to list of used cyphers: |
Okay, it looks like you're getting that from gpsoauth version 1.0.0 ? And while I find other references to version 1.0.0, on my CentOS Stream 8 system, pip can only find 0.4.3 as the latest:
|
It should be able to find 1.0.0 if you have python3.8+ |
I've tried python 3.8.8 and 3.9.6 now. Still receiving the BadAuthentication error.
A tcpdump trace shows the encryption handshake is settling on TLS 1.2 and cipher suite 0x1302 TLS_AES_256_GCM_SHA384, ECDH, AESGCM, 256 which would seem to fit with the "EDCH+AES" requirement from the ciphers list mentioned earlier. The handshake appears good, but as the rest of the communication is encrypted I cannot tell what happens beyond that. |
I'm trying to get this to work on Raspberry Pi 4b, and have ha in a docker container that has python 3.12.2, gpsoauth 1.1.1, glocaltokens 0.7.1, and requests 2.31.0. I'm getting the same BadAuthentication error. |
I am trying to retrieve the master token as found in your examples. I have put the part before "@gmail.com" in for the username and an app password for my password (I have 2FA on). I get the following error:
I have tried numerous other token retrieval methods including the gist found here: https://rithvikvibhu.github.io/GHLocalApi. Is there some setting I need to update in my google account? I have tried using your ha-google-home library and that seems to not work either as a device does not show up. I have tried it multiple times with the same app password, could this be the issue? Any help would be appreciated. Thanks!
The text was updated successfully, but these errors were encountered: