Add example script demonstrating TOTP via auth-pending
PATCH v3 1/1 Add example script demonstrating TOTP via auth-pending
Patch v3: Some minor cleanups in the script (rename CNs, add more comments)
--- doc/man-sections/script-options.rst | 3 + sample/sample-scripts/totpauth.py | 111 ++++++++++++++++++++++++++++ 2 files changed, 114 insertions(+) create mode 100755 sample/sample-scripts/totpauth.py
doc/man-sections/script-options.rst +3 -0
@@ -147,6 +147,9 @@ SCRIPT HOOKS :code:`auth_control_file or further defer it. See ``--auth-user-pass-verify`` for details. + For a sample script that implement TOTP (RFC 6238) based two-factor + authentication, see :code:`sample-scripts/totp.py`. + --client-connect cmd Run command ``cmd`` on client connection.
sample/sample-scripts/totpauth.py new file +111 -0
111 lines not on this page · raw message
Signature · 1 line
2.32.0
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Hi,
Sent with ProtonMail Secure Email.
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
Quoted 28 lines · Arne Schwabe
Signed-off-by Arne Schwabe [email protected]...Patch v3: Some minor cleanups in the script (rename CNs, add more comments)
Signed-off-by Arne Schwabe [email protected]...
doc/man-sections/script-options.rst| 3 +
sample/sample-scripts/totpauth.py| 111 ++++++++++++++++++++++++++++2 files changed, 114 insertions(+)create mode 100755
sample/sample-scripts/totpauth.pydoc/man-sections/script-options.rst +0
-0index
f48e5818d..6517f8474100644---
a/doc/man-sections/script-options.rst+++
b/doc/man-sections/script-options.rstdoc/man-sections/script-options.rst +0
-0@@ -147,6 +147,9 @@ SCRIPT HOOKS:code:
auth_control_file or further defer it. See--auth-user-pass-verify`for details.
doc/man-sections/script-options.rst
Quoted 2 lines
doc/man-sections/script-options.rst +0
-2- For a sample script that implement TOTP (RFC 6238) based two-factor - authentication, see :code:`sample-scripts/totp.py`.
sample-scripts/totp.py -> sample-scripts/totpauth.py
Checked everything else and it all LGTM.
-----BEGIN PGP SIGNATURE-----
Version: ProtonMail
wsBzBAEBCAAGBQJhCABYACEJEE+XnPZrkLidFiEECbw9RGejjXJ5xVVVT5ec 9muQuJ1MTgf+KJa9xstxZXVoGhTer7jFDn+EQdKeBQT3S2JOiu/lLVrGFhCG +4nEXmsVSN/G/UIqwIzTfe0c6bTALGeEI4YUjL2Rsqixt96xxVUWeer+YVdv DF4Jxza/vCagzH3uszCpvBgiqB4YIhk7ZaTpLGfXqbY0VgVrwUD1AYPPWPFH tssgUx5UxSqqoT+AnIpsHTkT/svKCmd1d5IYLjAPy0I9+2vhBQEauWr4f/xa eoRJb6CQET3z3Lag9DEuqct/k4kT+twS4WYh4Ljr5SzNhuRZV+fbqHQYgk3n 50QttAoUmgzVKkwPSzwTd6u5DZUiT4KyH5REeqAOdwzNYwmxjwKCkQ== =YOUk
-----END PGP SIGNATURE-----
Hi,
Quoted 5 lines · Arne Schwabe
Signed-off-by Arne Schwabe <[email protected]...>Patch v3: Some minor cleanups in the script (rename CNs, add more comments)
Signed-off-by Arne Schwabe <[email protected]...>
Other than the small fix reported by tincantech, this patch has already been ACK'd by David in a previous version (also named v3..).
This version is just a rebase, so I would consider his ACK still valid.
Regards,
Signature · 1 line
Antonio Quartulli