Skip to content

Commit

Permalink
Use auth.validated_token instead of auth.get_username for dataset…
Browse files Browse the repository at this point in the history
… publish endpoint
  • Loading branch information
slesaad authored Aug 9, 2024
2 parents 56dbfa8 + 702c57f commit 40d9acd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workflows_api/runtime/src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 40d9acd

Please sign in to comment.