question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot authenticate with Google, won't redirect to challenge page

See original GitHub issue

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:

ERROR:root:'NoneType' object has no attribute 'get'
Traceback (most recent call last):
  File "/build/aws_google_auth/__init__.py", line 78, in cli
    process_auth(args, config)
  File "/build/aws_google_auth/__init__.py", line 242, in process_auth
    google_client.do_login()
  File "/build/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'

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.

aws-google-auth -k -p ${AWS_PROFILE_NAME} -I ${GOOGLE_IDP_ID} -S ${GOOGLE_SP_ID} -R ${AWS_DEFAULT_REGION} --resolve-aliases -q

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 https://github.com/cevoaustralia/aws-google-auth/issues/160

Screenshot 2020-04-21 at 10 49 56

out2.html.zip

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:6
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

16reactions
rmirandarjcommented, May 18, 2022

My whole team started getting below error with aws-google-auth. We tried resetting cookies, uninstalled & installed aws-google-auth but did not help. Can some please shed some light on it. It was working fine until yesterday. image

I was getting the same problem, but I just added this flag --bg-response js_enabled, running the latest version of aws-google-auth (0.0.38).

aws-google-auth --bg-response js_enabled

0reactions
rama3319commented, Apr 26, 2022

My whole team started getting below error with aws-google-auth. We tried resetting cookies, uninstalled & installed aws-google-auth but did not help. Can some please shed some light on it. It was working fine until yesterday. image

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot login challenges, 2-Step Verification, & sign-in ...
You can only resolve the issue by first disabling the login challenge. If a user forgets the password for their managed Google account...
Read more >
AuthenticationProperties.RedirectUri is not passed to Google ...
RedirectUri = Server.UrlEncode(redirectUri); Context.GetOwinContext().Authentication.Challenge(properties, "Google");. This correctly sends the ...
Read more >
FIX Recaptcha Not Working in Google Chrome [Tutorial]
Upon reloading the web page, affected users receive a message warning them ... This is applicable to all browser versions, not just Chrome....
Read more >
Sign In With Google JavaScript API reference | Authentication
You actually reset the configurations whenever you call the google.accounts.id.initialize method, and all subsequent methods in the same web page will use the ......
Read more >
Unable to load gitlab.com login page in web browser, Under ...
I can't log into Gitlab.com, which I use every day, all day, for work, on multiple projects. I'm using Chrome, Version 83.0.4103.116 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found