-
Notifications
You must be signed in to change notification settings - Fork 42
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
{'Error': 'BadAuthentication'} #54
Comments
Yup. With a 2FA account, use an app password from https://myaccount.google.com/apppasswords For others (not using 2FA), enable less secure apps at https://myaccount.google.com/lesssecureapps |
I apologize for being a pain, but can you think of anything else? I've tried every variation I can think of (2FA w/ either google account pwd or custom app pwd, as well as non-2FA w/ less_secure enabled + google pwd or app pwd).... sometimes even with a hardcoded device_id (from my Android). I get the same response each time. |
Just to make sure, you're using just the username right? Not the complete email. Leaving out the |
Yessir. Running get_tokens.py, with just vars USERNAME and PASSWORD edited to mirror my username + (w/ 2-step-enabled attempts) apppword. Neither contain special characters. Attempts with a 2nd google account also fail, so you'd think this would just be user error on my part, but I can't see how |
I can't think of anything else. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I'm running into this as well. Tried with a 2FA account and a non-2FA account, with app passwords (and non-app passwords). I'm on Mac, FWIW. |
For anyone new seeing this issueVerify:
If it still doesn't work, then it probably is the same bug gpsoauth mentioned above. Track the issue in their repo. As of this comment, it looks os-dependent, not clear. Keeping this issue open for visibility until it is fixed. |
I'm still getting the same error on macOS. Since 2 months have passed, is there any solution for this? |
@vzRowan have you seen #54 (comment) and still face the same problem? If yes, no one knows what the exact problem is, but trying a different computer has worked for some. |
@rithvikvibhu I tried it on my Windows PC yesterday, but got the same error. I guess i'll have to wait for a solution to come up. |
Odd, my cron script for getting tokens based on this repo also suddenly stopped working after a password change. When trying to get a new master token I also face this issue. Tried with real and app password, on three different devices (1x windows 2x linux). All return the bad auth error 🤔 If anyone manages to fix this issue I'm very happy to hear how! |
I can confirm that with a custom device id (pick any mac address, without colons, all lowercase) + 2FA enabled account + app password works on Manjaro with python 3.8.6 and |
@rithvikvibhu Whoa this is weird. Your comment prompted me to try different Python versions. For me it did not work on Python Made no changes otherwise, so may be worth a try to play with different Python versions for the people encountering this issue! (Edit: For the record, also using |
Tried with Python 3.6.9 and gpsoauth 0.4.1 on Ubuntu but no luck. |
Update: I read on the gpsoauth repo that downgrading to So try |
Downgrading requests has resolved my longwithstanding issue as well (although I likewise haven't had a chance to test the tokens being retrieved). |
Glad to hear! Can you mention which requests version did not and did work? I'll mention that somewhere. Btw mine was always working and I confirmed working with all versions from 2.23.0 to 2.25.1 (https://requests.readthedocs.io/en/latest/community/updates/#release-history) Someone with the problem please try this and see which ones don't work: python --version
pip install requests==2.23.0
python script.py
pip install requests==2.24.0
python script.py
pip install requests==2.25.0
python script.py
pip install requests==2.25.1
python script.py |
Getting BadAuth on Ubuntu Server 16.04, Is there any way to bypass this process together and generate an access token from the normal oauth login page and a scope? EDIT: Updated to Python 3.6 and it worked! |
@DataPools Not that I'm aware of. You could try recreating the same request that the |
I'm still getting this on the latest version of python 3.6, with various versions of requests. I've also clocked continue here: https://accounts.google.com/DisplayUnlockCaptcha though I have created an app specific password since I use 2FA. |
@velkrosmaak do you have another account to try with? If that works, then can compare what's different with the accounts. |
I don't have another Google account where my Nest devices are linked to,
but I could try with a different account that doesn't have 2FA set up
either. Will report back!
…On Thu, 21 Jan 2021 at 02:55, Rithvik Vibhu ***@***.***> wrote:
@velkrosmaak <https://github.com/velkrosmaak> do you have another account
to try with? If that works, then can compare what's different with the
accounts.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#54 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAWYXOFEFRZZV3WHYQE4CK3S26JSRANCNFSM4QBHQUZQ>
.
|
See simon-weber/gpsoauth#24, this should be resolved |
Hello, is this script still working as of April, 2023? I am having the "Bad Authentication" problem and I haven't been able to solve it yet. I have followed the steps that are explained in the comments but it doesn't work. |
@Tony450 I would check with https://github.com/simon-weber/gpsoauth to see if it works and if not, create an issue there. |
Hi. Does anything in particular need to be done for gpsoauth to be able to successfully return a master token? I keep getting this error against a 2FA enabled account.
[] Getting master token...
{'Error': 'BadAuthentication'}
[!] Could not get master token.
[] Master token: None
The text was updated successfully, but these errors were encountered: