Skip to contentSkip to conversation

Add example script demonstrating TOTP via auth-pending

PATCH In review Arne Schwabe 3 participants 3 messages Aug 2, 2021 – Aug 10, 2021

lore
Share & tools
lore
#0 lore raw

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
index f48e5818d..6517f8474 100644
@@ -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
#1 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hi,

Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐

Quoted 28 lines · Arne Schwabe

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 +0 -0

index f48e5818d..6517f8474 100644

--- a/doc/man-sections/script-options.rst

+++ b/doc/man-sections/script-options.rst

doc/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-----

#2 lore raw
In reply to Arne Schwabe

Hi,

Quoted 5 lines · Arne Schwabe

Patch v3: Some minor cleanups in the script (rename CNs, add more comments)

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