usso 0.28.1__py3-none-any.whl → 0.28.2__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/models/user.py +10 -0
- {usso-0.28.1.dist-info → usso-0.28.2.dist-info}/METADATA +1 -1
- {usso-0.28.1.dist-info → usso-0.28.2.dist-info}/RECORD +7 -7
- {usso-0.28.1.dist-info → usso-0.28.2.dist-info}/WHEEL +0 -0
- {usso-0.28.1.dist-info → usso-0.28.2.dist-info}/entry_points.txt +0 -0
- {usso-0.28.1.dist-info → usso-0.28.2.dist-info}/licenses/LICENSE.txt +0 -0
- {usso-0.28.1.dist-info → usso-0.28.2.dist-info}/top_level.txt +0 -0
usso/models/user.py
CHANGED
@@ -75,6 +75,16 @@ class UserData(BaseModel):
|
|
75
75
|
return self.claims["user_id"]
|
76
76
|
return self.sub or ""
|
77
77
|
|
78
|
+
@property
|
79
|
+
def uid(self) -> str:
|
80
|
+
return self.user_id
|
81
|
+
|
82
|
+
@property
|
83
|
+
def user_name(self) -> str:
|
84
|
+
if self.claims and "user_name" in self.claims:
|
85
|
+
return self.claims["user_name"]
|
86
|
+
return ""
|
87
|
+
|
78
88
|
@property
|
79
89
|
def email(self) -> str:
|
80
90
|
if self.claims and "email" in self.claims:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: usso
|
3
|
-
Version: 0.28.
|
3
|
+
Version: 0.28.2
|
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>
|
@@ -9,7 +9,7 @@ usso/integrations/django/middleware.py,sha256=8b-VYQ3FRhLnXSl4ZfHBpiA6VLY4b7b0-Y
|
|
9
9
|
usso/integrations/fastapi/__init__.py,sha256=ohToiqutHu3Okr8naunssDkamj1OdiG4OpPdBW0rt7U,204
|
10
10
|
usso/integrations/fastapi/dependency.py,sha256=9CaRSvCNbrSQr7EQd6SEs7HhxULWvXLkEX89L5rsnZc,2543
|
11
11
|
usso/integrations/fastapi/handler.py,sha256=MNDoBYdySumFsBgVw-xir3jXXH63KehFXKCh-pNnNZQ,386
|
12
|
-
usso/models/user.py,sha256=
|
12
|
+
usso/models/user.py,sha256=iqHlhkfkp4tDNGnvN2o-ZrhLHRrpe-JsfkwJdhv8ZZo,3526
|
13
13
|
usso/session/__init__.py,sha256=tE4qWUdSI7iN_pywm47Mg8NKOTBa2nCNwCy3wCZWRmU,124
|
14
14
|
usso/session/async_session.py,sha256=7OKvFnJQaHnLjeQKSW6bltl0KcQGzOvUje-bJKbxFZY,3692
|
15
15
|
usso/session/base_session.py,sha256=Jggp_1JJEKwAJYxNTk4KhP15BSjq6diuSSBzf79gToI,2551
|
@@ -17,9 +17,9 @@ usso/session/session.py,sha256=B29Srxoq7webDvmfmfTeeh5JjtLSHvJijM2WCEZOh-8,1506
|
|
17
17
|
usso/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
18
18
|
usso/utils/method_utils.py,sha256=1NMN4le04PWXDSJZK-nf7q2IFqOMkwYcCnslFXAzlH8,355
|
19
19
|
usso/utils/string_utils.py,sha256=7tziAa2Cwa7xhwM_NF4DSY3BHoqVaWgJ21VuV8LvhrY,253
|
20
|
-
usso-0.28.
|
21
|
-
usso-0.28.
|
22
|
-
usso-0.28.
|
23
|
-
usso-0.28.
|
24
|
-
usso-0.28.
|
25
|
-
usso-0.28.
|
20
|
+
usso-0.28.2.dist-info/licenses/LICENSE.txt,sha256=ceC9ZJOV9H6CtQDcYmHOS46NA3dHJ_WD4J9blH513pc,1081
|
21
|
+
usso-0.28.2.dist-info/METADATA,sha256=EWDQGDRrJkh6lfnECyg9EhKPYVr4yDDyfiKdNVaiOG4,4845
|
22
|
+
usso-0.28.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
23
|
+
usso-0.28.2.dist-info/entry_points.txt,sha256=4Zgpm5ELaAWPf0jPGJFz1_X69H7un8ycT3WdGoJ0Vvk,35
|
24
|
+
usso-0.28.2.dist-info/top_level.txt,sha256=g9Jf6h1Oyidh0vPiFni7UHInTJjSvu6cUalpLTIvthg,5
|
25
|
+
usso-0.28.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|