diff --git a/workflows_api/runtime/src/main.py b/workflows_api/runtime/src/main.py index 6af00fb5..c1b72784 100644 --- a/workflows_api/runtime/src/main.py +++ b/workflows_api/runtime/src/main.py @@ -76,7 +76,7 @@ def validate_dataset(dataset: schemas.COGDataset): @workflows_app.post( - "/dataset/publish", tags=["Dataset"], dependencies=[Depends(auth.get_username)] + "/dataset/publish", tags=["Dataset"], dependencies=[Depends(auth.validated_token)] ) async def publish_dataset( token=Depends(auth.oauth2_scheme),