Failed to get password chalenge
See original GitHub issueEnvironment:
- Python 3.10
- aws-google-auth 0.0.37
I tried to use another python versions and another aws-google-auth version like 0.0.36 but without success.
ERROR:root:'NoneType' object has no attribute 'get'
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/aws_google_auth/__init__.py", line 79, in cli
process_auth(args, config)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/aws_google_auth/__init__.py", line 243, in process_auth
google_client.do_login()
File "/Library/Frameworks/Python.framework/Versions/3.10/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'
Issue Analytics
- State:
- Created a year ago
- Reactions:7
- Comments:10 (1 by maintainers)
Top Results From Across the Web
The precise meaning of "Failed security challenge for password
What is the precise meaning of " Failed security challenge for password reset step 1 of 2 " on outlook.com's recent activity ?...
Read more >Invalid forgotten password challenge - DocuSign Support
Click on the Admin tab, then under the Security Settings, click Password Rules. Under Password questions required, select 0.
Read more >Invalid forgotten password challenge - Okta Support
Okta to Docusign user provisioning is failing with one of the following errors: "One or both of Username and Password are invalid".
Read more >Troubleshoot login challenges, 2-Step Verification, & sign-in ...
You may know the password for the user account, but a login challenge might prevent you from gaining access. Solution: Temporarily turn off...
Read more >IdentiKey Manager - Known Issues
Issue: This error may appear if you have characters not allowed in your password or security questions. Resolution: Ensure you're not using disallowed ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I fix this error as follows:
Added the parameter “–bg-response js_enabled”
$ aws-google-auth -u ‘user’ -I ‘<IDP_ID>’ -S ‘<SP_ID>’ -R ‘<REGION>’ -d ‘<DURATION>’ --bg-response js_enabled
After adding this parameter, proceed to the captcha but when filling it, the error continued to occur.
Debugging the page content with the error I noticed that by default aws-google-auth sends this parameter “bg_response” with value “js_disabled”. The google auth flow must have changed to block browsers that don’t support javascript. People who used it before seem to have no problem but new facilities are not working. My solution was to pass the value as “js_enabled” but as this parameter was not being passed in the payload of the request to captcha, the error continued to occur. The solution was to include the parameter in the payload of the request, which in my case and that of other co-workers fixed the problem.
I will submit a pull request for this fix.
This is the commit with that fix, you can test by adding these two lines of code locally to fix it temporarily until the fix is delivered.
Commit: https://github.com/ezequielsbarros/aws-google-auth/commit/d7d70010bac0494a5902e92a3bd7e124611cd6c1
@monkora - see PR #250, this is a simple two-line fix that worked well. Thanks @ezequielbarros for the fix!