usso 0.27.21__py3-none-any.whl → 0.28.0__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/__init__.py +23 -2
- usso/auth/__init__.py +9 -0
- usso/auth/api_key.py +43 -0
- usso/auth/client.py +85 -0
- usso/auth/config.py +115 -0
- usso/exceptions.py +13 -0
- usso/integrations/django/__init__.py +3 -0
- usso/{django → integrations/django}/middleware.py +37 -29
- usso/integrations/fastapi/__init__.py +3 -0
- usso/integrations/fastapi/dependency.py +95 -0
- usso/models/user.py +119 -0
- usso/session/async_session.py +16 -10
- usso/session/base_session.py +29 -47
- usso/session/session.py +10 -36
- usso/utils/method_utils.py +12 -0
- usso/utils/string_utils.py +7 -0
- usso-0.28.0.dist-info/METADATA +172 -0
- usso-0.28.0.dist-info/RECORD +24 -0
- {usso-0.27.21.dist-info → usso-0.28.0.dist-info}/WHEEL +1 -1
- usso/b64tools.py +0 -20
- usso/client/__init__.py +0 -4
- usso/client/api.py +0 -174
- usso/client/async_api.py +0 -159
- usso/core.py +0 -160
- usso/fastapi/__init__.py +0 -7
- usso/fastapi/integration.py +0 -88
- usso/schemas.py +0 -67
- usso-0.27.21.dist-info/METADATA +0 -110
- usso-0.27.21.dist-info/RECORD +0 -22
- /usso/{django → utils}/__init__.py +0 -0
- {usso-0.27.21.dist-info → usso-0.28.0.dist-info}/entry_points.txt +0 -0
- {usso-0.27.21.dist-info → usso-0.28.0.dist-info/licenses}/LICENSE.txt +0 -0
- {usso-0.27.21.dist-info → usso-0.28.0.dist-info}/top_level.txt +0 -0
usso-0.27.21.dist-info/METADATA
DELETED
@@ -1,110 +0,0 @@
|
|
1
|
-
Metadata-Version: 2.2
|
2
|
-
Name: usso
|
3
|
-
Version: 0.27.21
|
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
|
-
Author-email: Mahdi Kiani <mahdikiany@gmail.com>
|
6
|
-
Maintainer-email: Mahdi Kiani <mahdikiany@gmail.com>
|
7
|
-
License: Copyright (c) 2016 The Python Packaging Authority (PyPA)
|
8
|
-
|
9
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
10
|
-
this software and associated documentation files (the "Software"), to deal in
|
11
|
-
the Software without restriction, including without limitation the rights to
|
12
|
-
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
13
|
-
of the Software, and to permit persons to whom the Software is furnished to do
|
14
|
-
so, subject to the following conditions:
|
15
|
-
|
16
|
-
The above copyright notice and this permission notice shall be included in all
|
17
|
-
copies or substantial portions of the Software.
|
18
|
-
|
19
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
20
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
21
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
22
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
23
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
24
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
25
|
-
SOFTWARE.
|
26
|
-
|
27
|
-
Project-URL: Homepage, https://github.com/ussoio/usso-python
|
28
|
-
Project-URL: Bug Reports, https://github.com/ussoio/usso-python/issues
|
29
|
-
Project-URL: Funding, https://github.com/ussoio/usso-python
|
30
|
-
Project-URL: Say Thanks!, https://saythanks.io/to/mahdikiani
|
31
|
-
Project-URL: Source, https://github.com/ussoio/usso-python
|
32
|
-
Keywords: usso,sso,authentication,security,fastapi,django
|
33
|
-
Classifier: Development Status :: 3 - Alpha
|
34
|
-
Classifier: Intended Audience :: Developers
|
35
|
-
Classifier: Topic :: Software Development :: Build Tools
|
36
|
-
Classifier: License :: OSI Approved :: MIT License
|
37
|
-
Classifier: Programming Language :: Python :: 3
|
38
|
-
Classifier: Programming Language :: Python :: 3.10
|
39
|
-
Classifier: Programming Language :: Python :: 3.11
|
40
|
-
Classifier: Programming Language :: Python :: 3.12
|
41
|
-
Classifier: Programming Language :: Python :: 3 :: Only
|
42
|
-
Requires-Python: >=3.9
|
43
|
-
Description-Content-Type: text/markdown
|
44
|
-
License-File: LICENSE.txt
|
45
|
-
Requires-Dist: pydantic>=2
|
46
|
-
Requires-Dist: pyjwt[crypto]
|
47
|
-
Requires-Dist: cachetools
|
48
|
-
Requires-Dist: singleton_package
|
49
|
-
Requires-Dist: json-advanced
|
50
|
-
Requires-Dist: httpx
|
51
|
-
Provides-Extra: fastapi
|
52
|
-
Requires-Dist: fastapi>=0.65.0; extra == "fastapi"
|
53
|
-
Requires-Dist: uvicorn[standard]>=0.13.0; extra == "fastapi"
|
54
|
-
Provides-Extra: django
|
55
|
-
Requires-Dist: Django>=3.2; extra == "django"
|
56
|
-
Provides-Extra: httpx
|
57
|
-
Requires-Dist: httpx; extra == "httpx"
|
58
|
-
Provides-Extra: dev
|
59
|
-
Requires-Dist: check-manifest; extra == "dev"
|
60
|
-
Provides-Extra: test
|
61
|
-
Requires-Dist: coverage; extra == "test"
|
62
|
-
Provides-Extra: all
|
63
|
-
Requires-Dist: fastapi; extra == "all"
|
64
|
-
Requires-Dist: uvicorn; extra == "all"
|
65
|
-
Requires-Dist: django; extra == "all"
|
66
|
-
Requires-Dist: httpx; extra == "all"
|
67
|
-
Requires-Dist: dev; extra == "all"
|
68
|
-
Requires-Dist: test; extra == "all"
|
69
|
-
|
70
|
-
# USSO-Client
|
71
|
-
|
72
|
-
The USSO-Client provides a universal single sign-on (SSO) integration for microservices, making it easy to add secure, scalable authentication across different frameworks. This client simplifies the process of connecting any microservice to the USSO service.
|
73
|
-
|
74
|
-
## Features
|
75
|
-
|
76
|
-
- **Core SSO Integration**: Use the USSO core client for basic SSO functionality across any Python application.
|
77
|
-
- **Framework-Specific Modules**:
|
78
|
-
- **FastAPI Integration**: Specialized support for FastAPI applications, enabling async authentication mechanisms tailored to FastAPI's event loop.
|
79
|
-
- *Django Integration* (Coming soon): Customizable Django authentication backend that integrates seamlessly with Django's user management and middleware architecture.
|
80
|
-
|
81
|
-
## Installation
|
82
|
-
|
83
|
-
Install the USSO client using pip:
|
84
|
-
|
85
|
-
```bash
|
86
|
-
pip install usso
|
87
|
-
```
|
88
|
-
|
89
|
-
To add framework-specific support, use the following commands:
|
90
|
-
|
91
|
-
For FastAPI:
|
92
|
-
|
93
|
-
```bash
|
94
|
-
pip install "usso[fastapi]"
|
95
|
-
```
|
96
|
-
|
97
|
-
For Django:
|
98
|
-
|
99
|
-
```bash
|
100
|
-
pip install "usso[django]"
|
101
|
-
```
|
102
|
-
|
103
|
-
## Quick Start
|
104
|
-
Follow the quick start guides in the documentation to integrate USSO in your application.
|
105
|
-
|
106
|
-
## Contributing
|
107
|
-
Contributions are welcome! See CONTRIBUTING.md for more details on how to get involved.
|
108
|
-
|
109
|
-
## License
|
110
|
-
Distributed under the MIT License. See LICENSE for more information.
|
usso-0.27.21.dist-info/RECORD
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
usso/__init__.py,sha256=NnOS_S1a-JKTOlGe1nw-kCL3m0y82mA2mDraus7BQ2o,120
|
2
|
-
usso/b64tools.py,sha256=HGQ0E59vzjrQo2-4jrcY03ebtTaYwTtCZ7KgJaEmxO0,610
|
3
|
-
usso/core.py,sha256=kZCdHQz-sIbmd9MUd4CVMZACtvP60rbpL1Gszy3tkzQ,5641
|
4
|
-
usso/exceptions.py,sha256=ogJsjdUK0HoZdQv5uCnzIVoG-bTTMHBqyvB4swAMsiE,653
|
5
|
-
usso/schemas.py,sha256=aK_UWZvqjZLz5r1yBIZX_nL2yPCNUjxpZ93AsV9mAes,1810
|
6
|
-
usso/client/__init__.py,sha256=ilGFrugI7bhGXVIcETdbRAye8S7k2mVjkEeziToVzSs,100
|
7
|
-
usso/client/api.py,sha256=-sluL8BMjcI1z8y8thZElCa63nxo25qlmKh3IzK3M6U,5124
|
8
|
-
usso/client/async_api.py,sha256=UMN84vmWvLgi-3zsNdhCOjf5zQQQFUJ-wKLztI_rU58,5186
|
9
|
-
usso/django/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
10
|
-
usso/django/middleware.py,sha256=EEEpHvMQ6QiWw2HY8zQ2Aec0RCATcLWsCKeyiPWJKio,3245
|
11
|
-
usso/fastapi/__init__.py,sha256=0EcdOzb4f3yu9nILIdGWnlyUz-0VaVX2az1e3f2BusI,201
|
12
|
-
usso/fastapi/integration.py,sha256=IonxxNj_B9sG2j672rIzE047qo972vk7ch4-eGENp3Q,2638
|
13
|
-
usso/session/__init__.py,sha256=tE4qWUdSI7iN_pywm47Mg8NKOTBa2nCNwCy3wCZWRmU,124
|
14
|
-
usso/session/async_session.py,sha256=HxM5FA-QLtaLQ3Pc5ttwqfEQfzPajySR1SQ0qO-VJ7I,3578
|
15
|
-
usso/session/base_session.py,sha256=wZ96VPf0zz8zDRtjJrOmZ2S4XvEBLLZAc74A4iDy7G4,3369
|
16
|
-
usso/session/session.py,sha256=SWHHJr_s2P7vChbyp0OUqmIsdyP_Yed9-VuOWUInW0Y,2606
|
17
|
-
usso-0.27.21.dist-info/LICENSE.txt,sha256=ceC9ZJOV9H6CtQDcYmHOS46NA3dHJ_WD4J9blH513pc,1081
|
18
|
-
usso-0.27.21.dist-info/METADATA,sha256=ZKrTd-aerwKIqaHf0XCPIuWPW8XL7eP9cg5xdp7WMyE,4580
|
19
|
-
usso-0.27.21.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
20
|
-
usso-0.27.21.dist-info/entry_points.txt,sha256=4Zgpm5ELaAWPf0jPGJFz1_X69H7un8ycT3WdGoJ0Vvk,35
|
21
|
-
usso-0.27.21.dist-info/top_level.txt,sha256=g9Jf6h1Oyidh0vPiFni7UHInTJjSvu6cUalpLTIvthg,5
|
22
|
-
usso-0.27.21.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|