usso 0.25.4__py3-none-any.whl → 0.26.0__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.
usso/session.py CHANGED
@@ -58,6 +58,8 @@ class UssoSession:
58
58
  json={"refresh_token": f"{self.refresh_token}"},
59
59
  )
60
60
  response.raise_for_status()
61
+ self.access_token = response.json().get("access_token")
62
+ self.session.headers.update({"Authorization": f"Bearer {self.access_token}"})
61
63
  return response.json()
62
64
 
63
65
  def get_session(self):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: usso
3
- Version: 0.25.4
3
+ Version: 0.26.0
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>
@@ -46,6 +46,13 @@ Requires-Dist: pydantic >=2
46
46
  Requires-Dist: requests >=2.26.0
47
47
  Requires-Dist: pyjwt[crypto]
48
48
  Requires-Dist: cachetools
49
+ Provides-Extra: all
50
+ Requires-Dist: fastapi ; extra == 'all'
51
+ Requires-Dist: uvicorn ; extra == 'all'
52
+ Requires-Dist: django ; extra == 'all'
53
+ Requires-Dist: httpx ; extra == 'all'
54
+ Requires-Dist: dev ; extra == 'all'
55
+ Requires-Dist: test ; extra == 'all'
49
56
  Provides-Extra: dev
50
57
  Requires-Dist: check-manifest ; extra == 'dev'
51
58
  Provides-Extra: django
@@ -53,6 +60,8 @@ Requires-Dist: Django >=3.2 ; extra == 'django'
53
60
  Provides-Extra: fastapi
54
61
  Requires-Dist: fastapi >=0.65.0 ; extra == 'fastapi'
55
62
  Requires-Dist: uvicorn[standard] >=0.13.0 ; extra == 'fastapi'
63
+ Provides-Extra: httpx
64
+ Requires-Dist: httpx ; extra == 'httpx'
56
65
  Provides-Extra: test
57
66
  Requires-Dist: coverage ; extra == 'test'
58
67
 
@@ -5,14 +5,14 @@ usso/async_session.py,sha256=nFIrtV3Tp0H-s2ZkMLU9_fVSeVGq1EtY1bGT_XOS5Vw,4336
5
5
  usso/b64tools.py,sha256=HGQ0E59vzjrQo2-4jrcY03ebtTaYwTtCZ7KgJaEmxO0,610
6
6
  usso/core.py,sha256=tZzoh_t7HYr-HIual4hN7K1ZVk_nGZdKpaItq5VvkJQ,7087
7
7
  usso/exceptions.py,sha256=hawOAuVbvQtjgRfwp1KFZ4SmV7fh720y5Gom9JVA8W8,504
8
- usso/session.py,sha256=Lky2O8FGbOMJFOMxxdE0rhpgwWKThGQfr-X9YQsFpLk,2358
8
+ usso/session.py,sha256=E8qx96IWfLWp0CTo1qwb6VUWn0giUnKQIQo-ZRnneEY,2508
9
9
  usso/django/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
10
  usso/django/middleware.py,sha256=EEEpHvMQ6QiWw2HY8zQ2Aec0RCATcLWsCKeyiPWJKio,3245
11
11
  usso/fastapi/__init__.py,sha256=0EcdOzb4f3yu9nILIdGWnlyUz-0VaVX2az1e3f2BusI,201
12
12
  usso/fastapi/integration.py,sha256=-8MTeqGokvmUO0lxZpEWXdTMYg6n065qtnaJHOwCrzQ,1890
13
- usso-0.25.4.dist-info/LICENSE.txt,sha256=ceC9ZJOV9H6CtQDcYmHOS46NA3dHJ_WD4J9blH513pc,1081
14
- usso-0.25.4.dist-info/METADATA,sha256=A_tGSXx1G-21gFFMscbvknkEdDumh0qZ3L4wlE7Nxxs,4194
15
- usso-0.25.4.dist-info/WHEEL,sha256=OVMc5UfuAQiSplgO0_WdW7vXVGAt9Hdd6qtN4HotdyA,91
16
- usso-0.25.4.dist-info/entry_points.txt,sha256=4Zgpm5ELaAWPf0jPGJFz1_X69H7un8ycT3WdGoJ0Vvk,35
17
- usso-0.25.4.dist-info/top_level.txt,sha256=g9Jf6h1Oyidh0vPiFni7UHInTJjSvu6cUalpLTIvthg,5
18
- usso-0.25.4.dist-info/RECORD,,
13
+ usso-0.26.0.dist-info/LICENSE.txt,sha256=ceC9ZJOV9H6CtQDcYmHOS46NA3dHJ_WD4J9blH513pc,1081
14
+ usso-0.26.0.dist-info/METADATA,sha256=BvGkXVCHcQqGDgGqblbYdfy7Uu-gpJrYIrEsbIpRcEI,4506
15
+ usso-0.26.0.dist-info/WHEEL,sha256=OVMc5UfuAQiSplgO0_WdW7vXVGAt9Hdd6qtN4HotdyA,91
16
+ usso-0.26.0.dist-info/entry_points.txt,sha256=4Zgpm5ELaAWPf0jPGJFz1_X69H7un8ycT3WdGoJ0Vvk,35
17
+ usso-0.26.0.dist-info/top_level.txt,sha256=g9Jf6h1Oyidh0vPiFni7UHInTJjSvu6cUalpLTIvthg,5
18
+ usso-0.26.0.dist-info/RECORD,,
File without changes