def auth_interactive_dumb(self, username, handler=None, submethods="<STR_LIT>"):
if not handler:<EOL><INDENT>def handler(title, instructions, prompt_list):<EOL><INDENT>answers = []<EOL>if title:<EOL><INDENT>print(title.strip())<EOL><DEDENT>if instructions:<EOL><INDENT>print(instructions.strip())<EOL><DEDENT>for prompt, show_input in prompt_list:<EOL><INDENT>print(prompt.strip(), end="<STR_LIT:U+0020>")<EOL>answers.append(input())<EOL><DEDENT>return answers<EOL><DEDENT><DEDENT>return self.auth_interactive(username, handler, submethods)<EOL>
Autenticate to the server interactively but dumber.
Just print the prompt and / or instructions to stdout and send back
the response. This is good for situations where partial auth is
achieved by key and then the user has to enter a 2fac token.