Skip to content
This repository has been archived by the owner on Feb 17, 2024. It is now read-only.

Protecting the answers download endpoint #9

Open
pjotrsavitski opened this issue Feb 4, 2019 · 0 comments
Open

Protecting the answers download endpoint #9

pjotrsavitski opened this issue Feb 4, 2019 · 0 comments
Labels
task A task to be completed

Comments

@pjotrsavitski
Copy link
Contributor

The endpoint for downloading answers should have a better protection that just checking the UUID of the Session Entity. In future versions that identifier is planned to be used with the URLs instead of the serial identifier, making that available to all the participants with the URL to the session page.

The best approach would be to check for the update permission on the entity itself, but that would limit it to only be available to the authenticated users.
Another approach would be to generate some unique token and allow that to be used instead. Ideally, the token would be short-lived and/or not part of the URL. Potentially passed as a header of the HTTP request.

@pjotrsavitski pjotrsavitski added the task A task to be completed label Feb 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
task A task to be completed
Projects
None yet
Development

No branches or pull requests

1 participant