xn-auth 0.2.52__tar.gz → 0.2.54__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {xn_auth-0.2.52/xn_auth.egg-info → xn_auth-0.2.54}/PKG-INFO +1 -1
- {xn_auth-0.2.52 → xn_auth-0.2.54}/x_auth/controller.py +1 -1
- {xn_auth-0.2.52 → xn_auth-0.2.54}/x_auth/middleware.py +3 -0
- {xn_auth-0.2.52 → xn_auth-0.2.54/xn_auth.egg-info}/PKG-INFO +1 -1
- {xn_auth-0.2.52 → xn_auth-0.2.54}/.env.dist +0 -0
- {xn_auth-0.2.52 → xn_auth-0.2.54}/.gitignore +0 -0
- {xn_auth-0.2.52 → xn_auth-0.2.54}/.pre-commit-config.yaml +0 -0
- {xn_auth-0.2.52 → xn_auth-0.2.54}/README.md +0 -0
- {xn_auth-0.2.52 → xn_auth-0.2.54}/makefile +0 -0
- {xn_auth-0.2.52 → xn_auth-0.2.54}/pyproject.toml +0 -0
- {xn_auth-0.2.52 → xn_auth-0.2.54}/setup.cfg +0 -0
- {xn_auth-0.2.52 → xn_auth-0.2.54}/x_auth/enums.py +0 -0
- {xn_auth-0.2.52 → xn_auth-0.2.54}/x_auth/exceptions.py +0 -0
- {xn_auth-0.2.52 → xn_auth-0.2.54}/x_auth/models.py +0 -0
- {xn_auth-0.2.52 → xn_auth-0.2.54}/x_auth/types.py +0 -0
- {xn_auth-0.2.52 → xn_auth-0.2.54}/xn_auth.egg-info/SOURCES.txt +0 -0
- {xn_auth-0.2.52 → xn_auth-0.2.54}/xn_auth.egg-info/dependency_links.txt +0 -0
- {xn_auth-0.2.52 → xn_auth-0.2.54}/xn_auth.egg-info/requires.txt +0 -0
- {xn_auth-0.2.52 → xn_auth-0.2.54}/xn_auth.egg-info/top_level.txt +0 -0
|
@@ -61,6 +61,7 @@ class Auth:
|
|
|
61
61
|
}
|
|
62
62
|
),
|
|
63
63
|
)
|
|
64
|
+
logging.warning({db_user.id: res.cookies[0]})
|
|
64
65
|
res.cookies[0].httponly = False
|
|
65
66
|
return res
|
|
66
67
|
|
|
@@ -79,7 +80,6 @@ class Auth:
|
|
|
79
80
|
except ValueError as e:
|
|
80
81
|
logging.error(e)
|
|
81
82
|
raise NotAuthorizedException(detail=f"Tg Initdata invalid {e}")
|
|
82
|
-
logging.warning({tid: twaid})
|
|
83
83
|
return await user_proc(twaid.user)
|
|
84
84
|
|
|
85
85
|
self.tma_handler = tma
|
|
@@ -62,6 +62,9 @@ class JWTAuthMiddleware(JWTCookieAuthenticationMiddleware):
|
|
|
62
62
|
# noinspection PyUnresolvedReferences
|
|
63
63
|
scope["state"]["_ls_connection_state"].headers = Headers({"authorization": "Bearer " + uet})
|
|
64
64
|
await super().__call__(scope, receive, send_wrapper)
|
|
65
|
+
except Exception as e:
|
|
66
|
+
logging.error(scope)
|
|
67
|
+
raise e
|
|
65
68
|
# except NotAuthorizedException as e:
|
|
66
69
|
# if e.detail == "No JWT token found in request header or cookies" and e.status_code == 401:
|
|
67
70
|
# return e
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|