usso 0.20.0__py3-none-any.whl → 0.20.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/api.py +1 -9
- usso/core.py +1 -1
- {usso-0.20.0.dist-info → usso-0.20.2.dist-info}/METADATA +1 -1
- {usso-0.20.0.dist-info → usso-0.20.2.dist-info}/RECORD +8 -8
- {usso-0.20.0.dist-info → usso-0.20.2.dist-info}/LICENSE.txt +0 -0
- {usso-0.20.0.dist-info → usso-0.20.2.dist-info}/WHEEL +0 -0
- {usso-0.20.0.dist-info → usso-0.20.2.dist-info}/entry_points.txt +0 -0
- {usso-0.20.0.dist-info → usso-0.20.2.dist-info}/top_level.txt +0 -0
usso/api.py
CHANGED
@@ -88,14 +88,6 @@ class UssoAPI(metaclass=Singleton):
|
|
88
88
|
)
|
89
89
|
)
|
90
90
|
|
91
|
-
def get_user_credentials(self, user_id: str, **kwargs) -> UserData:
|
92
|
-
return UserData(
|
93
|
-
**self._request(
|
94
|
-
endpoint=f"website/users/{user_id}/credentials",
|
95
|
-
**kwargs,
|
96
|
-
)
|
97
|
-
)
|
98
|
-
|
99
91
|
def get_user_by_credentials(self, credentials: dict, **kwargs) -> UserData:
|
100
92
|
return UserData(
|
101
93
|
**self._request(
|
@@ -133,7 +125,7 @@ class UssoAPI(metaclass=Singleton):
|
|
133
125
|
credentials: dict | None = None,
|
134
126
|
**kwargs,
|
135
127
|
) -> UserData:
|
136
|
-
|
128
|
+
user_data = user_data or {}
|
137
129
|
if credentials:
|
138
130
|
user_data["authenticators"] = [credentials]
|
139
131
|
return UserData(
|
usso/core.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: usso
|
3
|
-
Version: 0.20.
|
3
|
+
Version: 0.20.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>
|
@@ -1,14 +1,14 @@
|
|
1
1
|
usso/__init__.py,sha256=RN0E6HI9kHedvDxheDPVWiAmh-169IrhXfvq_sHphQc,65
|
2
|
-
usso/api.py,sha256=
|
2
|
+
usso/api.py,sha256=9lQiJlZelh986HhvTbdhVtyJVRMqlTHTr12hFCj_g6g,4617
|
3
3
|
usso/b64tools.py,sha256=6YCBx2lLaYFdk36f064VNZ1RejJTHtmgxqq0eT1sCwQ,518
|
4
|
-
usso/core.py,sha256=
|
4
|
+
usso/core.py,sha256=JQbwx6u53epwurBeSPOA5JHccRCf-bsz-9oQrVBr2t0,3048
|
5
5
|
usso/exceptions.py,sha256=hawOAuVbvQtjgRfwp1KFZ4SmV7fh720y5Gom9JVA8W8,504
|
6
6
|
usso/package_data.dat,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
7
7
|
usso/fastapi/__init__.py,sha256=TRTDVJo8bwZQDAuCQFhh-g1XbIspf6TdFYXGAO5cgAU,130
|
8
8
|
usso/fastapi/integration.py,sha256=9Q10dfy8UagOkmG49-Ar0mj6PPsiKS8ioLFgBIREpWQ,1823
|
9
|
-
usso-0.20.
|
10
|
-
usso-0.20.
|
11
|
-
usso-0.20.
|
12
|
-
usso-0.20.
|
13
|
-
usso-0.20.
|
14
|
-
usso-0.20.
|
9
|
+
usso-0.20.2.dist-info/LICENSE.txt,sha256=ceC9ZJOV9H6CtQDcYmHOS46NA3dHJ_WD4J9blH513pc,1081
|
10
|
+
usso-0.20.2.dist-info/METADATA,sha256=I5j1CWKBHhgs5S2WuUNf9s2q3MOEk6GL4ugJf37eVHQ,4334
|
11
|
+
usso-0.20.2.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
12
|
+
usso-0.20.2.dist-info/entry_points.txt,sha256=4Zgpm5ELaAWPf0jPGJFz1_X69H7un8ycT3WdGoJ0Vvk,35
|
13
|
+
usso-0.20.2.dist-info/top_level.txt,sha256=g9Jf6h1Oyidh0vPiFni7UHInTJjSvu6cUalpLTIvthg,5
|
14
|
+
usso-0.20.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|