xn-auth 0.2.52__py3-none-any.whl → 0.2.54__py3-none-any.whl

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.
x_auth/controller.py CHANGED
@@ -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
x_auth/middleware.py CHANGED
@@ -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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: xn-auth
3
- Version: 0.2.52
3
+ Version: 0.2.54
4
4
  Summary: Auth adapter for XN-Api framework
5
5
  Author-email: Artemiev <mixartemev@gmail.com>
6
6
  License: MIT
@@ -0,0 +1,10 @@
1
+ x_auth/controller.py,sha256=5tBqq_7OGUwHOtCZlE1ROeAxN-qCdA_5D7ti971AmDo,3807
2
+ x_auth/enums.py,sha256=pciVrb92S9YQFMhHe6pKNYwcvtevwfMXIiG1WxAEa-Q,761
3
+ x_auth/exceptions.py,sha256=2B4okJxhPyNqTJXlSTfblJUQJ60bLGXdgJIu6ue7S6w,162
4
+ x_auth/middleware.py,sha256=KLRv60Ih1a4yobn-jcjysV-m0i5tu0bKKlpcaC3Ghbs,2984
5
+ x_auth/models.py,sha256=V3lvrUVtS5viyqO_-Y7u2zQep5bRjPOpWmc5kweMrN0,9211
6
+ x_auth/types.py,sha256=xVi1A8CrGfdfS2HbaxX-X3lEJWH_1TvTk-u8TeqKzQg,1514
7
+ xn_auth-0.2.54.dist-info/METADATA,sha256=3hjU8TtfR8SbhoNS11myw9cfqqxLrrh7sbkYXeQzueo,823
8
+ xn_auth-0.2.54.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
9
+ xn_auth-0.2.54.dist-info/top_level.txt,sha256=ydMDkzxgQPtW-E_MNDfUAroAFZvWSqU-x_kZSA7NSFo,7
10
+ xn_auth-0.2.54.dist-info/RECORD,,
@@ -1,10 +0,0 @@
1
- x_auth/controller.py,sha256=kWYg72moq3ln4NRbcO-gC_rX63LdVgaqItbcNXVRl-s,3791
2
- x_auth/enums.py,sha256=pciVrb92S9YQFMhHe6pKNYwcvtevwfMXIiG1WxAEa-Q,761
3
- x_auth/exceptions.py,sha256=2B4okJxhPyNqTJXlSTfblJUQJ60bLGXdgJIu6ue7S6w,162
4
- x_auth/middleware.py,sha256=JfssQomDv0J_69GfS2a_2_uyRzs26zSY6IW1Vk7m8K0,2900
5
- x_auth/models.py,sha256=V3lvrUVtS5viyqO_-Y7u2zQep5bRjPOpWmc5kweMrN0,9211
6
- x_auth/types.py,sha256=xVi1A8CrGfdfS2HbaxX-X3lEJWH_1TvTk-u8TeqKzQg,1514
7
- xn_auth-0.2.52.dist-info/METADATA,sha256=KcYiPWUmmvxvAUJwQMxhDShyyGy0ELJsgRvzOXrDrzU,823
8
- xn_auth-0.2.52.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
9
- xn_auth-0.2.52.dist-info/top_level.txt,sha256=ydMDkzxgQPtW-E_MNDfUAroAFZvWSqU-x_kZSA7NSFo,7
10
- xn_auth-0.2.52.dist-info/RECORD,,