Added support for TOTP password prompts, as used by google-authenticator-libpam

pull/999/merge^2
Marius Burz 1 year ago
parent 330375be32
commit 9ffb309e20

@ -22,12 +22,13 @@ v0.3.4.dev0
* :gh:issue:`929` Support Ansible 6 and ansible-core 2.13
* :gh:issue:`832` Fix runtime error when using the ansible.builtin.dnf module multiple times
* :gh:issue:`925` :class:`ansible_mitogen.connection.Connection` no longer tries to close the
* :gh:issue:`925` :class:`ansible_mitogen.connection.Connection` no longer tries to close the
connection on destruction. This is expected to reduce cases of `mitogen.core.Error: An attempt
was made to enqueue a message with a Broker that has already exitted`. However it may result in
resource leaks.
* :gh:issue:`659` Removed :mod:`mitogen.compat.simplejson`, not needed with Python 2.7+, contained Python 3.x syntax errors
* :gh:issue:`983` CI: Removed PyPI faulthandler requirement from tests
* :gh:issue:`998` SSH: Added support for TOTP password prompts (i.e. 'Verification code: '), as used by google-authenticator-libpam
v0.3.3 (2022-06-03)
-------------------

@ -66,8 +66,12 @@ hostkey_failed_msg = (
)
# sshpass uses 'assword' because it doesn't lowercase the input.
# 'password': standard password prompt
# 'verification code': TOTP prompt(as used by e.g. google-authenticator-libpam)
# These should also match 'password & verification code' for password and TOTP
# prompt (as used by e.g. google-authenticator-libpam)
PASSWORD_PROMPT_PATTERN = re.compile(
b('password'),
b('(password|verification code)'),
re.I
)

Loading…
Cancel
Save