seamless-auth 0.1.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.
- seamless_auth/__init__.py +34 -0
- seamless_auth/_adapter.py +911 -0
- seamless_auth/_client_ip.py +85 -0
- seamless_auth/_cookies.py +128 -0
- seamless_auth/_delivery.py +44 -0
- seamless_auth/_http.py +87 -0
- seamless_auth/_jwks.py +132 -0
- seamless_auth/_jwt.py +52 -0
- seamless_auth/_manifest.py +247 -0
- seamless_auth/_refresh.py +81 -0
- seamless_auth/django.py +203 -0
- seamless_auth/fastapi.py +123 -0
- seamless_auth/manifest.json +233 -0
- seamless_auth/py.typed +0 -0
- seamless_auth-0.1.0.dist-info/METADATA +238 -0
- seamless_auth-0.1.0.dist-info/RECORD +18 -0
- seamless_auth-0.1.0.dist-info/WHEEL +4 -0
- seamless_auth-0.1.0.dist-info/licenses/LICENSE +202 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"""A Seamless Auth server adapter for Python, with FastAPI and Django bindings.
|
|
2
|
+
|
|
3
|
+
The adapter sits in front of the Seamless Auth API. Browsers talk to it over
|
|
4
|
+
HttpOnly cookies on the application's own domain, native clients over bearer
|
|
5
|
+
tokens, and it talks to the auth API over bearer tokens and a service token.
|
|
6
|
+
Which routes it serves, and what each does to the session, comes from the auth
|
|
7
|
+
API's adapter manifest.
|
|
8
|
+
|
|
9
|
+
The framework bindings live in :mod:`seamless_auth.fastapi` and
|
|
10
|
+
:mod:`seamless_auth.django`.
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
from ._adapter import Adapter, CrossSiteRequest, Unauthenticated, User
|
|
14
|
+
from ._client_ip import TrustedProxies
|
|
15
|
+
from ._delivery import Delivery
|
|
16
|
+
from ._http import AuthRequest, AuthResponse, Headers, ResponseCookie
|
|
17
|
+
from ._manifest import MANIFEST_PATH, Manifest, ManifestError, ManifestRoute
|
|
18
|
+
|
|
19
|
+
__all__ = [
|
|
20
|
+
"MANIFEST_PATH",
|
|
21
|
+
"Adapter",
|
|
22
|
+
"AuthRequest",
|
|
23
|
+
"AuthResponse",
|
|
24
|
+
"CrossSiteRequest",
|
|
25
|
+
"Delivery",
|
|
26
|
+
"Headers",
|
|
27
|
+
"Manifest",
|
|
28
|
+
"ManifestError",
|
|
29
|
+
"ManifestRoute",
|
|
30
|
+
"ResponseCookie",
|
|
31
|
+
"TrustedProxies",
|
|
32
|
+
"Unauthenticated",
|
|
33
|
+
"User",
|
|
34
|
+
]
|