jscheffl commented on code in PR #45008:
URL: https://github.com/apache/airflow/pull/45008#discussion_r1890264200


##########
providers/src/airflow/providers/edge/worker_api/auth.py:
##########
@@ -112,4 +112,7 @@ def jwt_token_authorization_rest(
     request: Request, authorization: str = Header(description="JWT 
Authorization Token")
 ):
     """Check if the JWT token is correct for REST API requests."""
-    jwt_token_authorization(request.url.path, authorization)
+    PREFIX = "/edge_worker/v1/"
+    path = request.url.path
+    method_path = path[path.find(PREFIX) + len(PREFIX) :]

Review Comment:
   Thanks, will apply on base PR branch



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to