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.

Unable to log in with google from security reasons

See original GitHub issue

Hi, up unitl recently, everything was working great, than I changed my password and start getting the following error:

ERROR:root:'NoneType' object has no attribute 'get'
Traceback (most recent call last):
  File "/home/omer/.local/lib/python3.8/site-packages/aws_google_auth/__init__.py", line 79, in cli
    process_auth(args, config)
  File "/home/omer/.local/lib/python3.8/site-packages/aws_google_auth/__init__.py", line 243, in process_auth
    google_client.do_login()
  File "/home/omer/.local/lib/python3.8/site-packages/aws_google_auth/google.py", line 257, in do_login
    passwd_challenge_url = 'https://accounts.google.com' + form.get('action')
AttributeError: 'NoneType' object has no attribute 'get'

This is what causing the issue (translated from Hebrew) -

image

Tried to delete saml cache, reinstall aws-google-auth, restart computer, sign out in and from all my google accounts and nothing worked…

Any ideas?

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:4
  • Comments:7

github_iconTop GitHub Comments

2reactions
miklinsoncommented, Jul 11, 2022

@Nalum can you try adding --bg-response js_enabled this resolves the issue on my end. aws-google-auth --idp-id ${IDPID} --sp-id ${SPID} --username ${GSUIT_USER} --region ${AWS_REGION} --bg-response js_enabled

1reaction
Nalumcommented, Jul 4, 2022

I’ve just installed this and I’m hitting this issue with v0.0.38.

❯ aws-google-auth -V
aws-google-auth 0.0.38
❯ aws-google-auth --resolve-aliases --idp-id ${IDPID} --sp-id ${SPID} --username ${GSUIT_USER} --region ${AWS_REGION}
Google Password:
ERROR:root:'NoneType' object has no attribute 'get'
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/aws_google_auth/__init__.py", line 79, in cli
    process_auth(args, config)
  File "/usr/lib/python3.10/site-packages/aws_google_auth/__init__.py", line 243, in process_auth
    google_client.do_login()
  File "/usr/lib/python3.10/site-packages/aws_google_auth/google.py", line 256, in do_login
    passwd_challenge_url = 'https://accounts.google.com' + form.get('action')
AttributeError: 'NoneType' object has no attribute 'get'

I’ve tried both the Arch AUR and the PIP install.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't sign in from a third-party service - Google Account Help
A general error that your sign-in was unsuccessful. · The service you're signing in from doesn't provide enough information to prove it's you....
Read more >
What to Do If You Can't Log In to Your Google Account | WIRED
The first is the user losing their credentials. That could mean you forgot your password, you changed your Google password on one device...
Read more >
8 Simple Fixes to Try if You Can't Sign into Gmail
There are multiple reasons for this issue. First, it's possible that your password isn't correct or your account is hacked, so be sure...
Read more >
Why Can't I Log Into My Gmail Account? FIX the Gmail Sign In ...
1. Check email and password · 2. Check service status · 3. Clear cookies and cache · 4. Check devices for confirmation email...
Read more >
I Can't Log In - Mailchimp
I'm being logged out of my account · Try logging back in. If we detect a period of inactivity in your session while...
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