Skip to content

Commit 7b3c983

Browse files
committed
Remove old security check on POST /file/:id/extract in favor of current Depends(FileAuthorization("uploader")) pattern.
This was throwing a 401 with a valid API key.
1 parent 97119b9 commit 7b3c983

2 files changed

Lines changed: 0 additions & 4 deletions

File tree

backend/app/routers/files.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,6 @@ async def post_file_extract(
555555
# parameters don't have a fixed model shape
556556
parameters: dict = None,
557557
user=Depends(get_current_user),
558-
credentials: HTTPAuthorizationCredentials = Security(security),
559558
rabbitmq_client: BlockingChannel = Depends(dependencies.get_rabbitmq),
560559
allow: bool = Depends(FileAuthorization("uploader")),
561560
):

openapi.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3465,9 +3465,6 @@
34653465
},
34663466
{
34673467
"APIKeyCookie": []
3468-
},
3469-
{
3470-
"HTTPBearer": []
34713468
}
34723469
]
34733470
}

0 commit comments

Comments
 (0)