usso 0.15.0__tar.gz → 0.16.0__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.15.0
3
+ Version: 0.16.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>
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "usso"
7
- version = "0.15.0"
7
+ version = "0.16.0"
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.8"
@@ -35,7 +35,7 @@ class UssoAPI(metaclass=Singleton):
35
35
  if not self.access_token:
36
36
  return False
37
37
 
38
- user_data = USSO(
38
+ user_data = Usso(
39
39
  jwks_url=f"{self.url}/website/jwks.json?"
40
40
  ).user_data_from_token(self.access_token)
41
41
  if user_data:
@@ -41,7 +41,9 @@ class UserData(BaseModel):
41
41
 
42
42
 
43
43
  class Usso(metaclass=Singleton):
44
- def __init__(self, jwks_url: str):
44
+ def __init__(self, jwks_url: str|None = None):
45
+ if jwks_url is None:
46
+ jwks_url = os.getenv("USSO_JWKS_URL")
45
47
  self.jwks_url = jwks_url
46
48
 
47
49
  @lru_cache
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: usso
3
- Version: 0.15.0
3
+ Version: 0.16.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>
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes