Add TOTP export via CLI and API

This commit is contained in:
thePR0M3TH3AN committed 2025-07-09 17:09:27 -04:00
1 parent a54fc3658e
commit 4f810ccbc3
7 files changed
+82

No files matched your search

+10
View File
@@ -112,6 +112,16 @@ def test_update_config_secret_mode(client):
assert called["val"] is True
def test_totp_export_endpoint(client):
cl, token = client
api._pm.entry_manager.export_totp_entries = lambda seed: {"entries": ["x"]}
api._pm.parent_seed = "seed"
headers = {"Authorization": f"Bearer {token}"}
res = cl.get("/api/v1/totp/export", headers=headers)
assert res.status_code == 200
assert res.json() == {"entries": ["x"]}
def test_fingerprint_endpoints(client):
cl, token = client
calls = {}