Skip to content
Snippets Groups Projects
Commit c6a12894 authored by Nathaniel Kofalt's avatar Nathaniel Kofalt
Browse files

Update comment

parent f2ca284a
No related branches found
No related tags found
No related merge requests found
......@@ -448,11 +448,7 @@ class FileListHandler(ListHandler):
# Server-Sent Events are fired in the browser in such a way that one cannot dictate their headers.
# For these endpoints, authentication must be disabled because the normal Authorization header will not be present.
# There are several valid ways to fix this, including switching to cookies, or allowing the inclusion of the Authorization token as a request parameter.
#
# In lieu of solutions, this workaround allows users to merely provide their token id for these endpoints.
# This is not ideal because mongo ObjectIds are very predictable and not exactly nonces...
# Because the current scope of SSE endpoints are merely completing an in-flight packfile, this limitation seems acceptable for now.
# In this case, the document id will serve instead.
if check_user:
query['user'] = self.uid
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment