skyplatform-iam 1.2.3__py3-none-any.whl → 1.2.4__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.
- skyplatform_iam/__init__.py +1 -1
- skyplatform_iam/middleware.py +4 -0
- {skyplatform_iam-1.2.3.dist-info → skyplatform_iam-1.2.4.dist-info}/METADATA +2 -1
- skyplatform_iam-1.2.4.dist-info/RECORD +8 -0
- skyplatform_iam-1.2.3.dist-info/RECORD +0 -8
- {skyplatform_iam-1.2.3.dist-info → skyplatform_iam-1.2.4.dist-info}/WHEEL +0 -0
skyplatform_iam/__init__.py
CHANGED
skyplatform_iam/middleware.py
CHANGED
|
@@ -68,6 +68,10 @@ class AuthMiddleware(BaseHTTPMiddleware):
|
|
|
68
68
|
api_path = request.url.path
|
|
69
69
|
method = request.method
|
|
70
70
|
|
|
71
|
+
if method == "OPTIONS":
|
|
72
|
+
response = await call_next(request)
|
|
73
|
+
return response
|
|
74
|
+
|
|
71
75
|
# 检查是否为机机接口鉴权 来自其他服务
|
|
72
76
|
server_ak = request.headers.get('SERVER-AK')
|
|
73
77
|
server_sk = request.headers.get('SERVER-SK')
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: skyplatform-iam
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.4
|
|
4
4
|
Summary: SkyPlatform IAM认证SDK,提供FastAPI中间件和认证路由
|
|
5
5
|
Project-URL: Homepage, https://github.com/xinmayoujiang12621/agenterra_iam
|
|
6
6
|
Project-URL: Documentation, https://skyplatform-iam.readthedocs.io/
|
|
@@ -27,6 +27,7 @@ Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
|
27
27
|
Requires-Python: >=3.9
|
|
28
28
|
Requires-Dist: fastapi>=0.68.0
|
|
29
29
|
Requires-Dist: pydantic>=1.8.0
|
|
30
|
+
Requires-Dist: pyjwt>=2.10.1
|
|
30
31
|
Requires-Dist: requests>=2.25.0
|
|
31
32
|
Requires-Dist: starlette>=0.14.0
|
|
32
33
|
Provides-Extra: dev
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
skyplatform_iam/__init__.py,sha256=XwFr1dn6ywlk5ayELT1fnoXOMmGkG7ZxQsoTu0c-JwA,5591
|
|
2
|
+
skyplatform_iam/config.py,sha256=x3GBikMkC8-0og0Vhs6h5_nTcBXeEd8euDgVDd7IsK4,4607
|
|
3
|
+
skyplatform_iam/connect_agenterra_iam.py,sha256=qbtzxdwbHBQM6LSiD7HqC-AK7FOpic-SMVjX4VpHkeU,42332
|
|
4
|
+
skyplatform_iam/exceptions.py,sha256=Rt55QIzVK1F_kn6yzKQKKakD6PZDFdPLCGaCphKKms8,2166
|
|
5
|
+
skyplatform_iam/middleware.py,sha256=iTrog2D6PgLE4LVnNr2h6s39bX7ybnG5BnAWaQpqI0Y,17927
|
|
6
|
+
skyplatform_iam-1.2.4.dist-info/METADATA,sha256=PKoPzhhIbBBfFYsmme79wado1zTpOlroTGwbibQrkMA,12687
|
|
7
|
+
skyplatform_iam-1.2.4.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
8
|
+
skyplatform_iam-1.2.4.dist-info/RECORD,,
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
skyplatform_iam/__init__.py,sha256=vXaJjjXRcFeKo_f4lFHlaGmlXUrefSeubARysfm4oiU,5591
|
|
2
|
-
skyplatform_iam/config.py,sha256=x3GBikMkC8-0og0Vhs6h5_nTcBXeEd8euDgVDd7IsK4,4607
|
|
3
|
-
skyplatform_iam/connect_agenterra_iam.py,sha256=qbtzxdwbHBQM6LSiD7HqC-AK7FOpic-SMVjX4VpHkeU,42332
|
|
4
|
-
skyplatform_iam/exceptions.py,sha256=Rt55QIzVK1F_kn6yzKQKKakD6PZDFdPLCGaCphKKms8,2166
|
|
5
|
-
skyplatform_iam/middleware.py,sha256=niLad2BhE1gyZ2y8yAp1-oiomqSh1gL6hEhtN0IsiPo,17802
|
|
6
|
-
skyplatform_iam-1.2.3.dist-info/METADATA,sha256=odQCTOkP1IYgtjmMiZtxXEizE1hP1P5BVv2bEc9hhxM,12658
|
|
7
|
-
skyplatform_iam-1.2.3.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
8
|
-
skyplatform_iam-1.2.3.dist-info/RECORD,,
|
|
File without changes
|