-
Notifications
You must be signed in to change notification settings - Fork 178
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
Cannot authenticate with Google, won't redirect to challenge page #184
Comments
I'm seeing same error
I can't seem to find a way around it. |
Duplicate of #179 |
Is this resolved with the latest build Please let us know if this resolves your issue. |
Hello, I'm getting the same problem @james-welly. Do you find any solution to it? I'm not familiar with the code base of the project, but looking quickly I can see that the problem is here, in google.py file: if challenge_page.find('form', {'id': 'gaia_loginform'}):
form = challenge_page.find('form', {'id': 'gaia_loginform'})
passwd_challenge_url = form.get('action')
else:
# sometimes they serve up a different page
logging.info("Handling new-style login page")
form = challenge_page.find('form', {'id': 'challenge'})
passwd_challenge_url = 'https://accounts.google.com' + form.get('action') form doesn't get any value. It look like the webscrapping is failing, I'm not sure how to help tough @stevemac007 |
Not sure if it helps someone, but in my case, the problem seem to be that at my company we are using something called MobileIron as second factor authentication with our smarthphone, and when aws-google-auth code is doing this on google.py: # POST to account login info page, to collect profile and session info
sess = self.post(account_login_url, data=payload) Which doesn't have the following expected form: form = challenge_page.find('form', {'id': 'challenge'})
passwd_challenge_url = 'https://accounts.google.com' + form.get('action') So it breaks: ERROR:root:'NoneType' object has no attribute 'get'
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/aws_google_auth/__init__.py", line 78, in cli
process_auth(args, config)
File "/usr/local/lib/python3.8/dist-packages/aws_google_auth/__init__.py", line 242, in process_auth
google_client.do_login()
File "/usr/local/lib/python3.8/dist-packages/aws_google_auth/google.py", line 235, in do_login
passwd_challenge_url = 'https://accounts.google.com' + form.get('action')
AttributeError: 'NoneType' object has no attribute 'get' |
Have been using the docker image with this repo to authenticate with Google for some time. As of yesterday it stopped working with the following error message:
I have removed the image and downloaded the latest version and still get the error. I have also created a virtual environment with the latest python packages and run the following command and still no joy.
I have exported the challenge page to html (attached). Everyone else in my organisation is still able to use the repo to authenticate. Any thoughts? It appears to be a similar comments in #160
out2.html.zip
The text was updated successfully, but these errors were encountered: