Imports to top of file (ruff rule now). Refactor a couple of import cycles by implementing clear hierarchy of modules.

This commit is contained in:
2026-05-02 04:46:34 +00:00
parent 5c7c7343ad
commit 922069c603
15 changed files with 480 additions and 457 deletions
+2 -1
View File
@@ -107,10 +107,11 @@ async def validate_sso_request(request, *, perm: str = "cista:login") -> dict |
request.ctx.sso_user = data
if "set-cookie" in response.headers:
request.ctx.sso_cookies = response.headers.get_list("set-cookie")
return data
except Exception:
request.ctx.sso_user = {}
return {}
else:
return data
try:
error_data = response.json()