usso 0.20.5__tar.gz → 0.20.7__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: usso
3
- Version: 0.20.5
3
+ Version: 0.20.7
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>
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "usso"
7
- version = "0.20.5"
7
+ version = "0.20.7"
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"
@@ -81,7 +81,7 @@ class UssoAPI(metaclass=Singleton):
81
81
  raise e
82
82
  except Exception as e:
83
83
  logging.error(f"Error: {e}")
84
- logging.error(f"Response: {resp.text()}")
84
+ logging.error(f"Response: {resp.text}")
85
85
  raise e
86
86
  return resp.json()
87
87
 
@@ -14,7 +14,7 @@ async def jwt_access_security(request: Request) -> UserData | None:
14
14
  kwargs = {}
15
15
  authorization = request.headers.get("Authorization")
16
16
  if authorization:
17
- scheme, _, credentials = Usso().get_authorization_scheme_param(
17
+ scheme, credentials = Usso().get_authorization_scheme_param(
18
18
  authorization
19
19
  )
20
20
  if scheme.lower() == "bearer":
@@ -38,7 +38,7 @@ async def jwt_access_security_ws(websocket: WebSocket) -> UserData | None:
38
38
  kwargs = {}
39
39
  authorization = websocket.headers.get("Authorization")
40
40
  if authorization:
41
- scheme, _, credentials = Usso().get_authorization_scheme_param(
41
+ scheme, credentials = Usso().get_authorization_scheme_param(
42
42
  authorization
43
43
  )
44
44
  if scheme.lower() == "bearer":
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: usso
3
- Version: 0.20.5
3
+ Version: 0.20.7
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>
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