TOTP implementation

This commit is contained in:
Maxim Devaev
2023-01-22 22:50:06 +02:00
parent 828778f10a
commit 2d772cc30e
11 changed files with 155 additions and 1 deletions

View File

@@ -43,6 +43,8 @@ RUN pacman --noconfirm --ask=4 -Syy \
python-aiofiles \
python-periphery \
python-passlib \
python-pyotp \
python-qrcode \
python-pyserial \
python-setproctitle \
python-psutil \

View File

@@ -59,6 +59,8 @@ async def _get_configured_manager(
external_type=("htpasswd" if external_path else ""),
external_kwargs=(_make_service_kwargs(external_path) if external_path else {}),
totp_secret_path="",
)
try:
@@ -149,6 +151,8 @@ async def test_ok__disabled() -> None:
external_type="",
external_kwargs={},
totp_secret_path="",
)
assert not manager.is_auth_enabled()