We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
There isn't really a way to enforce authentication for images and videos. I was thinking ideally we could get authentication working through cookies?
I was trying it out, but was struggling with it and eventually just disabled authentication for static files and for the mjpeg endpoint.
I also enabled token through query parameters but obvs that's a slight security issue.
Added cookie checking here:
ptg-api-server/app/auth.py
Lines 14 to 21 in 6e71749
This is where static file authentication is disabled:
ptg-api-server/app/static.py
Lines 7 to 12 in 6e71749
The mjpeg just exists in a separate router without auth but I had originally planned on putting it with the data endpoint https://github.com/VIDA-NYU/ptg-api-server/blob/main/app/routers/mjpeg.py
The text was updated successfully, but these errors were encountered:
hvo
No branches or pull requests
There isn't really a way to enforce authentication for images and videos. I was thinking ideally we could get authentication working through cookies?
I was trying it out, but was struggling with it and eventually just disabled authentication for static files and for the mjpeg endpoint.
I also enabled token through query parameters but obvs that's a slight security issue.
Added cookie checking here:
ptg-api-server/app/auth.py
Lines 14 to 21 in 6e71749
This is where static file authentication is disabled:
ptg-api-server/app/static.py
Lines 7 to 12 in 6e71749
The mjpeg just exists in a separate router without auth but I had originally planned on putting it with the data endpoint
https://github.com/VIDA-NYU/ptg-api-server/blob/main/app/routers/mjpeg.py
The text was updated successfully, but these errors were encountered: