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:
+2
-1
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user