File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -93,3 +93,4 @@ docs/source/reference/api.yml
9393share /tiled /ui
9494
9595config.yml
96+ * .sqlite
Original file line number Diff line number Diff line change 66import copy
77import os
88from collections import defaultdict
9+ from datetime import timedelta
910from functools import lru_cache
1011from 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" , []))
You can’t perform that action at this time.
0 commit comments