cevoaustralia/aws-google-auth

Password manager + CAPTCHA

Open

#140 opened on Jul 14, 2019

View on GitHub
 (2 comments) (1 reaction) (0 assignees)Python (531 stars) (172 forks)batch import
enhancementhelp wanted

Description

The README mentions that the Google password can be supplied via stdin, for use with password managers. This seems to work, but when I try it, I can't answer the CAPTCHA prompt. The output below happens immediately without any input from me:

$ echo password-test | aws-google-auth
Google Password:
Please visit the following URL to view your CAPTCHA: https://accounts.google.com/Captcha?v=2&ctoken=<token>
ERROR:root:EOF when reading a line
Traceback (most recent call last):
  File "/Users/jtatum/projects/aws-google-auth/aws_google_auth/__init__.py", line 72, in cli
    process_auth(args, config)
  File "/Users/jtatum/projects/aws-google-auth/aws_google_auth/__init__.py", line 212, in process_auth
    google_client.do_login()
  File "/Users/jtatum/projects/aws-google-auth/aws_google_auth/google.py", line 260, in do_login
    sess = self.handle_captcha(sess, payload)
  File "/Users/jtatum/projects/aws-google-auth/aws_google_auth/google.py", line 381, in handle_captcha
    captcha_input = raw_input("Captcha (case insensitive): ") or None
EOFError: EOF when reading a line
Captcha (case insensitive): $

Contributor guide