Skip to content

Commit

Permalink
Merge pull request #91 from timnyborg/patch-2
Browse files Browse the repository at this point in the history
clarify old urls should be removed
  • Loading branch information
czue authored Oct 25, 2021
2 parents cec18e4 + 3d2f660 commit c26e0d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,8 @@ See `WebSocketProgressRecorder` and `websockets.js` for details.
# Securing the get_progress endpoint
By default, anyone can see the status and result of any task by accessing `/celery-progress/<task_id>`

To limit access, you need to wrap `get_progress()` in a view of your own which implements the permissions check, and _replace_ the url routing to point to your view.
To limit access, you need to wrap `get_progress()` in a view of your own which implements the permissions check, and create a new url routing to point to your view. Make sure to remove any existing (unprotected) celery progress urls from your root urlconf at the same time.


For example, requiring login with a class-based view:
```python
Expand Down

0 comments on commit c26e0d7

Please sign in to comment.