aws-google-auth icon indicating copy to clipboard operation
aws-google-auth copied to clipboard

Keep getting invalid password/username

Open ptonini opened this issue 4 years ago • 12 comments

Hello

I cant get credentials, no idea wy. User, password and AWS SAML app are ok: image

ptonini avatar Apr 20 '20 17:04 ptonini

I'm also facing same issue, but in my case this happens with a specific G-suit accounts I have tested with 3 different accounts out of which 2 accounts are giving this error on Ubuntu 18 and Amazon Linux2 but all 3 are working perfect on MACOS. All the systems are having same version aws-google-auth 0.0.35.

vishnu-axcess avatar Apr 20 '20 18:04 vishnu-axcess

Same here. With the same debug log output Ubuntu 18.04, aws-google-auth 0.0.35 Was also tested on multiple mac machines and multiple google accounts 2FA is enabled

VShox avatar Apr 20 '20 21:04 VShox

Works fine for me (Linux), failed on OSX for a new user account (worked fine with my login on the same computer). Maybe something to do with captcha.

wryun avatar Apr 21 '20 06:04 wryun

Ok, after some debug I have more info:
I'm not sure what it depends on, but after hitting https://accounts.google.com/signin/v1/lookup I get back <Response [200]> then fall under # Handle the "old-style" page condition with passwd_challenge_url = https://accounts.google.com/signin/v1/lookup as was parsed from action form. The password was added to data, response came back as <Response [200]> with the page where error was parsed out as <span class="error-msg" id="errormsg_0_Email" role="alert"></span> what is technically should probably considered as no errors - empty span? but as the code has condition if error is not None: - it failed. Also in the code there is an attempt to parse out a captcha: cap = response_page.find('input', {'name': 'logincaptcha'}) AND on the page I got back there is a captcha BUT dom element has different name: identifier-captcha-input It might looks as google has one more auth way. The curious thing happened when I did clone the repo and ran the same under virtual environment - and surprisingly everything works! Though I did check code of repo vs. in-host version - everything is the same, I did check all used libs version - everything is the same. I did debug both versions in the same time - the requests, the bodies. the headers that both tools are sending are the same, but under virtual environment I got back 302 redirect with following Handling new-style login page and in-host version's behavior is explained above. Hope it will help, let me know if you would need more info.

VShox avatar Apr 21 '20 23:04 VShox

I am facing the same issue here. Following @VShox steps (downloading and running) also did not resolve it. Anyone came up with a solution?

omprakash1989 avatar Apr 24 '20 05:04 omprakash1989

Same issue for me, I always get an Invalid username or password, tried with both 0.0.34 and 0.0.35.

I'm on macOS 10.14.6 if that makes any difference. 2FA is enabled and I'm not signed in to any other account on Chrome.

It only started happening a few days ago.

steliosfran avatar Apr 24 '20 16:04 steliosfran

I have the same issue. and am on the version 0.0.35. I always get Invalid username or password. I ma on macOS 10.14.5. Is anyone going to look at it? It is blocking me on some of my tasks.

chhaviLife360 avatar Apr 24 '20 23:04 chhaviLife360

I have the same issue on 0.0.35 Mac 10.15.4. I have MFA enabled

netors avatar Apr 26 '20 15:04 netors

Suddenly it started to work for me. I did not do much - played around with my 2FA, randomly set another default method, tried aws-google-auth - didn't work then did remove it, tried aws-google-auth again - didn't work, then came after half hour and tried aws-google-auth again - and suddenly it works.

VShox avatar Apr 27 '20 16:04 VShox

Duplicate of #179

tlvince avatar Apr 28 '20 13:04 tlvince

Facing the same issue for user on mac it is working fine but on ubuntu getting same error.

dineshkumar181094 avatar May 25 '20 16:05 dineshkumar181094

Having the same symptoms, also having 2FA enabled.

maestrx avatar Jun 09 '20 14:06 maestrx