Skip to content

Commit 96fd924

Browse files
authored
Update authz path for gen3-workflow/user-bucket (#82)
1 parent d2e6e28 commit 96fd924

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/authorization.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Contents:
1313
- Users are automatically granted access to `/users/<user ID>/gen3-workflow/tasks` so they can view their own tasks.
1414
- Admin access (the ability to see _all_ users’ tasks instead of just your own) can be granted to a user by granting them access to the parent resource `/services/workflow/gen3-workflow/tasks`.
1515
- This supports sharing tasks with others; for example, "user1" may share "taskA" with "user2" if the system grants "user2" access to `/users/user1/gen3-workflow/tasks/taskA`.
16-
- To delete their own S3 bucket along with all its objects, a user needs `delete` access to the resource `/services/workflow/user-bucket` on the `gen3-workflow` service -- a special privilege useful for automated testing but not intended for the average user.
16+
- To delete their own S3 bucket along with all its objects, a user needs `delete` access to the resource `/services/workflow/gen3-workflow/user-bucket` on the `gen3-workflow` service -- a special privilege useful for automated testing but not intended for the average user.
1717

1818
#### Authorization configuration example
1919

gen3workflow/routes/storage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ async def get_storage_info(request: Request, auth=Depends(Auth)) -> dict:
2323

2424
@router.delete("/user-bucket", status_code=HTTP_204_NO_CONTENT)
2525
async def delete_user_bucket(request: Request, auth=Depends(Auth)) -> None:
26-
await auth.authorize("delete", ["/services/workflow/user-bucket"])
26+
await auth.authorize("delete", ["/services/workflow/gen3-workflow/user-bucket"])
2727

2828
token_claims = await auth.get_token_claims()
2929
user_id = token_claims.get("sub")

0 commit comments

Comments
 (0)