agenta 0.28.0a2__py3-none-any.whl → 0.28.0a3__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.
Potentially problematic release.
This version of agenta might be problematic. Click here for more details.
- agenta/sdk/middleware/auth.py +2 -1
- {agenta-0.28.0a2.dist-info → agenta-0.28.0a3.dist-info}/METADATA +1 -1
- {agenta-0.28.0a2.dist-info → agenta-0.28.0a3.dist-info}/RECORD +5 -5
- {agenta-0.28.0a2.dist-info → agenta-0.28.0a3.dist-info}/WHEEL +0 -0
- {agenta-0.28.0a2.dist-info → agenta-0.28.0a3.dist-info}/entry_points.txt +0 -0
agenta/sdk/middleware/auth.py
CHANGED
|
@@ -63,7 +63,6 @@ class AuthorizationMiddleware(BaseHTTPMiddleware):
|
|
|
63
63
|
self,
|
|
64
64
|
request: Request,
|
|
65
65
|
call_next: Callable,
|
|
66
|
-
project_id: Optional[UUID] = None,
|
|
67
66
|
):
|
|
68
67
|
if AGENTA_UNAUTHORIZED_EXECUTION_ALLOWED:
|
|
69
68
|
return await call_next(request)
|
|
@@ -85,6 +84,8 @@ class AuthorizationMiddleware(BaseHTTPMiddleware):
|
|
|
85
84
|
"resource_id": self.resource_id,
|
|
86
85
|
}
|
|
87
86
|
|
|
87
|
+
project_id = request.query_params.get("project_id")
|
|
88
|
+
|
|
88
89
|
if project_id:
|
|
89
90
|
params["project_id"] = project_id
|
|
90
91
|
|
|
@@ -191,7 +191,7 @@ agenta/sdk/managers/deployment.py,sha256=SEokjZeh6n7HRKZ92Y0WncdG49hIFx-Z3B3HAl2
|
|
|
191
191
|
agenta/sdk/managers/shared.py,sha256=e53jckQq5PIMpjdxADOonUj7o8aGfzmSvdeH5f43rGs,21497
|
|
192
192
|
agenta/sdk/managers/variant.py,sha256=A5ga3mq3b0weUTXa9HO72MGaspthGcu1uK9K5OnP738,4172
|
|
193
193
|
agenta/sdk/middleware/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
194
|
-
agenta/sdk/middleware/auth.py,sha256=
|
|
194
|
+
agenta/sdk/middleware/auth.py,sha256=E7Uw0C3P7aZ9K_GYs8YComMjrKrNyE_SNJ4DXpQcf3Y,4156
|
|
195
195
|
agenta/sdk/middleware/cache.py,sha256=C_LEzFbulbCBIKtcut2T4qJzh90q4369WCsApDg3Vm0,902
|
|
196
196
|
agenta/sdk/router.py,sha256=mOguvtOwl2wmyAgOuWTsf98pQwpNiUILKIo67W_hR3A,119
|
|
197
197
|
agenta/sdk/tracing/__init__.py,sha256=rQNe5-zT5Kt7_CDhq-lnUIi1EYTBVzVf_MbfcIxVD98,41
|
|
@@ -226,7 +226,7 @@ agenta/templates/simple_prompt/app.py,sha256=kODgF6lhzsaJPdgL5b21bUki6jkvqjWZzWR
|
|
|
226
226
|
agenta/templates/simple_prompt/env.example,sha256=g9AE5bYcGPpxawXMJ96gh8oenEPCHTabsiOnfQo3c5k,70
|
|
227
227
|
agenta/templates/simple_prompt/requirements.txt,sha256=ywRglRy7pPkw8bljmMEJJ4aOOQKrt9FGKULZ-DGkoBU,23
|
|
228
228
|
agenta/templates/simple_prompt/template.toml,sha256=DQBtRrF4GU8LBEXOZ-GGuINXMQDKGTEG5y37tnvIUIE,60
|
|
229
|
-
agenta-0.28.
|
|
230
|
-
agenta-0.28.
|
|
231
|
-
agenta-0.28.
|
|
232
|
-
agenta-0.28.
|
|
229
|
+
agenta-0.28.0a3.dist-info/METADATA,sha256=mPDoW4Zw_FLrEWivA3h6NHMSOMMjNtmpH_I-E_S4EEA,31619
|
|
230
|
+
agenta-0.28.0a3.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
|
231
|
+
agenta-0.28.0a3.dist-info/entry_points.txt,sha256=PDiu8_8AsL7ibU9v4iNoOKR1S7F2rdxjlEprjM9QOgo,46
|
|
232
|
+
agenta-0.28.0a3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|