We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 21e3601 commit 1bf7cbcCopy full SHA for 1bf7cbc
airflow-core/src/airflow/api_fastapi/execution_api/routes/hitl.py
@@ -29,9 +29,15 @@
29
HITLDetailResponse,
30
UpdateHITLDetailPayload,
31
)
32
+from airflow.api_fastapi.execution_api.deps import JWTBearerTIPathDep
33
from airflow.models.hitl import HITLDetail
34
-router = APIRouter()
35
+router = APIRouter(
36
+ dependencies=[
37
+ # This checks that the UUID in the url matches the one in the token for us.
38
+ JWTBearerTIPathDep
39
+ ]
40
+)
41
42
log = structlog.get_logger(__name__)
43
0 commit comments