usso 0.27.16__tar.gz → 0.27.18__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.
Files changed (27) hide show
  1. {usso-0.27.16/src/usso.egg-info → usso-0.27.18}/PKG-INFO +3 -1
  2. {usso-0.27.16 → usso-0.27.18}/pyproject.toml +3 -1
  3. {usso-0.27.16 → usso-0.27.18}/src/usso/client/api.py +1 -0
  4. {usso-0.27.16 → usso-0.27.18}/src/usso/client/async_api.py +1 -0
  5. {usso-0.27.16 → usso-0.27.18/src/usso.egg-info}/PKG-INFO +3 -1
  6. {usso-0.27.16 → usso-0.27.18}/src/usso.egg-info/requires.txt +2 -0
  7. {usso-0.27.16 → usso-0.27.18}/LICENSE.txt +0 -0
  8. {usso-0.27.16 → usso-0.27.18}/README.md +0 -0
  9. {usso-0.27.16 → usso-0.27.18}/setup.cfg +0 -0
  10. {usso-0.27.16 → usso-0.27.18}/src/usso/__init__.py +0 -0
  11. {usso-0.27.16 → usso-0.27.18}/src/usso/b64tools.py +0 -0
  12. {usso-0.27.16 → usso-0.27.18}/src/usso/client/__init__.py +0 -0
  13. {usso-0.27.16 → usso-0.27.18}/src/usso/core.py +0 -0
  14. {usso-0.27.16 → usso-0.27.18}/src/usso/django/__init__.py +0 -0
  15. {usso-0.27.16 → usso-0.27.18}/src/usso/django/middleware.py +0 -0
  16. {usso-0.27.16 → usso-0.27.18}/src/usso/exceptions.py +0 -0
  17. {usso-0.27.16 → usso-0.27.18}/src/usso/fastapi/__init__.py +0 -0
  18. {usso-0.27.16 → usso-0.27.18}/src/usso/fastapi/integration.py +0 -0
  19. {usso-0.27.16 → usso-0.27.18}/src/usso/schemas.py +0 -0
  20. {usso-0.27.16 → usso-0.27.18}/src/usso/session/__init__.py +0 -0
  21. {usso-0.27.16 → usso-0.27.18}/src/usso/session/async_session.py +0 -0
  22. {usso-0.27.16 → usso-0.27.18}/src/usso/session/base_session.py +0 -0
  23. {usso-0.27.16 → usso-0.27.18}/src/usso/session/session.py +0 -0
  24. {usso-0.27.16 → usso-0.27.18}/src/usso.egg-info/SOURCES.txt +0 -0
  25. {usso-0.27.16 → usso-0.27.18}/src/usso.egg-info/dependency_links.txt +0 -0
  26. {usso-0.27.16 → usso-0.27.18}/src/usso.egg-info/entry_points.txt +0 -0
  27. {usso-0.27.16 → usso-0.27.18}/src/usso.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: usso
3
- Version: 0.27.16
3
+ Version: 0.27.18
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"
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "usso"
7
- version = "0.27.16"
7
+ version = "0.27.18"
8
8
  description = "A plug-and-play client for integrating universal single sign-on (SSO) with Python frameworks, enabling secure and seamless authentication across microservices."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.9"
@@ -31,6 +31,8 @@ dependencies = [
31
31
  "pydantic>=2",
32
32
  "pyjwt[crypto]",
33
33
  "cachetools",
34
+ "singleton_package",
35
+ "json-advanced",
34
36
  "httpx",
35
37
  ]
36
38
  optional-dependencies = {"fastapi"=["fastapi>=0.65.0", "uvicorn[standard]>=0.13.0"], "django"=["Django>=3.2"], "httpx"=["httpx"], "dev"=["check-manifest"], "test" = ["coverage"], "all"=["fastapi", "uvicorn", "django", "httpx", "dev", "test"]}
@@ -15,6 +15,7 @@ class UssoAPI(metaclass=Singleton):
15
15
  ):
16
16
  if url and not url.startswith("http"):
17
17
  url = f"https://{url}"
18
+ url = url.rstrip("/")
18
19
  self.url = url
19
20
  assert (
20
21
  api_key or refresh_token
@@ -15,6 +15,7 @@ class AsyncUssoAPI(metaclass=Singleton):
15
15
  ):
16
16
  if url and not url.startswith("http"):
17
17
  url = f"https://{url}"
18
+ url = url.rstrip("/")
18
19
  self.url = url
19
20
  assert (
20
21
  api_key or refresh_token
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: usso
3
- Version: 0.27.16
3
+ Version: 0.27.18
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"
@@ -1,6 +1,8 @@
1
1
  pydantic>=2
2
2
  pyjwt[crypto]
3
3
  cachetools
4
+ singleton_package
5
+ json-advanced
4
6
  httpx
5
7
 
6
8
  [all]
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes