Focus the Audit & Report tab, scope API tokens

This commit is contained in:
MacRimi
2026-09-12 00:22:14 +02:00
parent f12ca3ed27
commit 0b64549230
25 changed files with 683 additions and 146 deletions
+4
View File
@@ -578,6 +578,10 @@ def list_api_tokens():
entry = {
"id": t.get("id"),
"name": t.get("name", "API Token"),
# Tokens issued before scope existed carry no claim and verify
# as full_admin, so the list reflects that rather than the
# read-only default a new token gets.
"scope": t.get("scope", "full_admin"),
"token_prefix": t.get("token_prefix", "***"),
"created_at": t.get("created_at"),
"expires_at": t.get("expires_at"),