Skip to content

Commit 935bb8d

Browse files
committed
Merge branch 'cleanup' into frontend_context_provider
2 parents 25a7943 + bf5268a commit 935bb8d

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,3 +93,4 @@ docs/source/reference/api.yml
9393
share/tiled/ui
9494

9595
config.yml
96+
*.sqlite

tiled/config.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import copy
77
import os
88
from collections import defaultdict
9+
from datetime import timedelta
910
from functools import lru_cache
1011
from pathlib import Path
1112

@@ -68,6 +69,9 @@ def construct_build_app_kwargs(
6869
sys_path_additions.append(directory)
6970
with prepend_to_sys_path(*sys_path_additions):
7071
auth_spec = config.get("authentication", {}) or {}
72+
for age in ["refresh_token_max_age", "session_max_age", "access_token_max_age"]:
73+
if age in auth_spec:
74+
auth_spec[age] = timedelta(seconds=auth_spec[age])
7175
root_access_control = config.get("access_control", {}) or {}
7276
auth_aliases = {} # TODO Enable entrypoint as alias for authenticator_class?
7377
providers = list(auth_spec.get("providers", []))

0 commit comments

Comments
 (0)