usso 0.27.15__py3-none-any.whl → 0.27.17__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.
@@ -29,7 +29,7 @@ class AsyncUssoSession(httpx.AsyncClient, BaseUssoSession):
29
29
  user_id=user_id,
30
30
  client=client,
31
31
  )
32
- if self.api_key:
32
+ if not self.api_key:
33
33
  self._refresh_sync()
34
34
 
35
35
  def _prepare_refresh_request(self) -> tuple[dict, dict]:
usso/session/session.py CHANGED
@@ -32,7 +32,7 @@ class UssoSession(httpx.Client, BaseUssoSession):
32
32
  user_id=user_id,
33
33
  client=client,
34
34
  )
35
- if self.api_key:
35
+ if not self.api_key:
36
36
  self._refresh()
37
37
 
38
38
  def _refresh_api(self):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: usso
3
- Version: 0.27.15
3
+ Version: 0.27.17
4
4
  Summary: A plug-and-play client for integrating universal single sign-on (SSO) with Python frameworks, enabling secure and seamless authentication across microservices.
5
5
  Author-email: Mahdi Kiani <mahdikiany@gmail.com>
6
6
  Maintainer-email: Mahdi Kiani <mahdikiany@gmail.com>
@@ -45,6 +45,8 @@ License-File: LICENSE.txt
45
45
  Requires-Dist: pydantic>=2
46
46
  Requires-Dist: pyjwt[crypto]
47
47
  Requires-Dist: cachetools
48
+ Requires-Dist: singleton_package
49
+ Requires-Dist: json-advanced
48
50
  Requires-Dist: httpx
49
51
  Provides-Extra: fastapi
50
52
  Requires-Dist: fastapi>=0.65.0; extra == "fastapi"
@@ -11,12 +11,12 @@ usso/django/middleware.py,sha256=EEEpHvMQ6QiWw2HY8zQ2Aec0RCATcLWsCKeyiPWJKio,324
11
11
  usso/fastapi/__init__.py,sha256=0EcdOzb4f3yu9nILIdGWnlyUz-0VaVX2az1e3f2BusI,201
12
12
  usso/fastapi/integration.py,sha256=IonxxNj_B9sG2j672rIzE047qo972vk7ch4-eGENp3Q,2638
13
13
  usso/session/__init__.py,sha256=tE4qWUdSI7iN_pywm47Mg8NKOTBa2nCNwCy3wCZWRmU,124
14
- usso/session/async_session.py,sha256=iWpeOwmiBUmjwY-apWqArnib01G-LQw9kWxVgJtYsC0,3513
14
+ usso/session/async_session.py,sha256=CLtgIXcLF0if_VX1x0IJK_RpVEu1waUw69x4YVj4xxU,3517
15
15
  usso/session/base_session.py,sha256=GyqsmAG5TsmM5LEcf8EjH31ObD9RQg7FC1_DLA8jBWw,2962
16
- usso/session/session.py,sha256=G3132lC6ksRqhw-SOKUNwWuyLTsCqlqIluMtRZwPuMY,2385
17
- usso-0.27.15.dist-info/LICENSE.txt,sha256=ceC9ZJOV9H6CtQDcYmHOS46NA3dHJ_WD4J9blH513pc,1081
18
- usso-0.27.15.dist-info/METADATA,sha256=AxaQJmCd4Du3W5qKQ7twmVmIwQAplciBtJVMcoxLjfM,4518
19
- usso-0.27.15.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
20
- usso-0.27.15.dist-info/entry_points.txt,sha256=4Zgpm5ELaAWPf0jPGJFz1_X69H7un8ycT3WdGoJ0Vvk,35
21
- usso-0.27.15.dist-info/top_level.txt,sha256=g9Jf6h1Oyidh0vPiFni7UHInTJjSvu6cUalpLTIvthg,5
22
- usso-0.27.15.dist-info/RECORD,,
16
+ usso/session/session.py,sha256=WnvT0wqBj_z0_N97oaqBleni36SJQdhK9r5k1roxcgY,2389
17
+ usso-0.27.17.dist-info/LICENSE.txt,sha256=ceC9ZJOV9H6CtQDcYmHOS46NA3dHJ_WD4J9blH513pc,1081
18
+ usso-0.27.17.dist-info/METADATA,sha256=mey2QJ0QdUeyuCYy1gmOdaR6LGETszjAcdArWz2DCS0,4580
19
+ usso-0.27.17.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
20
+ usso-0.27.17.dist-info/entry_points.txt,sha256=4Zgpm5ELaAWPf0jPGJFz1_X69H7un8ycT3WdGoJ0Vvk,35
21
+ usso-0.27.17.dist-info/top_level.txt,sha256=g9Jf6h1Oyidh0vPiFni7UHInTJjSvu6cUalpLTIvthg,5
22
+ usso-0.27.17.dist-info/RECORD,,
File without changes