Code Monkey home page Code Monkey logo

Comments (8)

ingluife avatar ingluife commented on June 12, 2024 1

My mistake, I just reinstall using sudo pip install "aws-google-auth[u2f]", and now it's working as expected.

Thank you so much @kriation for your time.

from aws-google-auth.

kriation avatar kriation commented on June 12, 2024

@ingluife, could you run through it again, passing --save-failure-html and --save-saml-flow?

The first will save any failures to saml.html in the local directory. The second will generate a directory with multiple files that include the GET and POST responses in each step of the flow.

Once generated, attach them to this issue.

from aws-google-auth.

ingluife avatar ingluife commented on June 12, 2024

Hi @kriation These are the files generated:
aws-google-auth-2022-08-26T171901.zip

Thanks for answering

from aws-google-auth.

kriation avatar kriation commented on June 12, 2024

Thanks for sharing the debug output, @ingluife.

Can you try again by adding --bg-response js_enabled as an argument?
Based on the contents of ac.go.com~signin~v1~lookup_5_POST.req, it looks like bg_response is being set to disabled which may explain why you're experiencing the same as what was reported in #219.

from aws-google-auth.

ingluife avatar ingluife commented on June 12, 2024

Hi @kriation, I got the same Error (adding --bg-response js_enabled):
ERROR:root:'NoneType' object has no attribute 'find_all' Traceback (most recent call last): File "/home/user/.local/lib/python3.9/site-packages/aws_google_auth/__init__.py", line 79, in cli process_auth(args, config) File "/home/user/.local/lib/python3.9/site-packages/aws_google_auth/__init__.py", line 243, in process_auth google_client.do_login() File "/home/user/.local/lib/python3.9/site-packages/aws_google_auth/google.py", line 291, in do_login sess = self.handle_captcha(sess, payload) File "/home/user/.local/lib/python3.9/site-packages/aws_google_auth/google.py", line 433, in handle_captcha for tag in form.find_all('input'): AttributeError: 'NoneType' object has no attribute 'find_all'

from aws-google-auth.

kriation avatar kriation commented on June 12, 2024

@ingluife, can you run it with --save-saml-flow and bg-response js_enabled? Once complete, please attach the files you did previously.

from aws-google-auth.

ingluife avatar ingluife commented on June 12, 2024

@kriation This is the output:
aws-google-auth-2022-09-01T175617.zip

from aws-google-auth.

kriation avatar kriation commented on June 12, 2024

@ingluife, I don't think you're running v0.0.38.

The output you included indicates that the code is not handling bgresponse properly. In addition, the stacktrace you pasted indicates that line 433 in google.py is for form.find_all('input')

Line 433 in google.py for v0.0.38 is a new line (https://github.com/cevoaustralia/aws-google-auth/blob/0.0.38/aws_google_auth/google.py#L433)

Please clean up your installation and re-install using the instructions listed in the readme (https://github.com/cevoaustralia/aws-google-auth#installation)

from aws-google-auth.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.